Add patch to allow cross-building, by using $CC instead of `gcc' in configure.ac.
authorgregor herrmann <gregoa@debian.org>
Sat, 9 Jun 2018 20:19:37 +0000 (22:19 +0200)
committergregor herrmann <gregoa@debian.org>
Sat, 9 Jun 2018 20:19:37 +0000 (22:19 +0200)
Thanks: Helmut Grohne for the bug report and the patch.
Closes: #901177
debian/patches/cross.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/cross.patch b/debian/patches/cross.patch
new file mode 100644 (file)
index 0000000..dae65e6
--- /dev/null
@@ -0,0 +1,20 @@
+Description: replace hard-coded `gcc' with $CC in configure.ac
+ to allow cross-building.
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/901177
+Forwarded: not-yet
+Author: Helmut Grohne <helmut@subdivi.de>
+Reviewed-by: gregor herrmann <gregoa@debian.org>
+Last-Update: 2018-06-09
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -96,7 +96,7 @@
+    CXXFLAGS="$CXXFLAGS -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -export-dynamic "
+ fi
+-SUPCXX=`gcc -print-file-name=libsupc++.a`
++SUPCXX=`$CC -print-file-name=libsupc++.a`
+ LIBS="$SUPCXX $LIBS"
index 4be3c7a63984a01a751f25a0c7a4b26538b76866..d0e0536a3a28a90ff9db4a477c7fa0afe625b227 100644 (file)
@@ -2,3 +2,4 @@ man.patch
 wording.patch
 hurd.patch
 makefile.am.patch
 wording.patch
 hurd.patch
 makefile.am.patch
+cross.patch