termux-packages/packages/ddrescue/fix-configure.patch

31 lines
657 B
Diff
Raw Normal View History

2018-02-18 22:09:36 +01:00
diff -u -r ../ddrescue-1.23/configure ./configure
--- ../ddrescue-1.23/configure 2018-02-13 12:54:43.000000000 +0000
+++ ./configure 2018-02-18 21:07:51.862861331 +0000
2017-09-09 21:08:24 +02:00
@@ -15,23 +15,15 @@
LC_ALL=C
export LC_ALL
srcdir=
-prefix=/usr/local
2018-02-18 22:09:36 +01:00
+prefix?=/usr/local
2017-09-09 21:08:24 +02:00
exec_prefix='$(prefix)'
bindir='$(exec_prefix)/bin'
datarootdir='$(prefix)/share'
infodir='$(datarootdir)/info'
mandir='$(datarootdir)/man'
-CXX=g++
2018-02-18 22:09:36 +01:00
+CXX?=g++
2017-09-09 21:08:24 +02:00
CPPFLAGS=
2018-02-18 22:09:36 +01:00
-CXXFLAGS='-Wall -W -O2'
2017-09-09 21:08:24 +02:00
-LDFLAGS=
-
-# checking whether we are using GNU C++.
-/bin/sh -c "${CXX} --version" > /dev/null 2>&1 ||
- {
- CXX=c++
2018-02-18 22:09:36 +01:00
- CXXFLAGS=-O2
2017-09-09 21:08:24 +02:00
- }
2018-02-18 22:09:36 +01:00
+CXXFLAGS?='-Wall -W -O2'
2017-09-09 21:08:24 +02:00
# Loop over all args
args=