Add patch to allow cross-building, by using $CC instead of `gcc' in configure.ac.
[debian/cdck.git] / debian / patches / cross.patch
1 Description: replace hard-coded `gcc' with $CC in configure.ac
2  to allow cross-building.
3 Origin: vendor
4 Bug-Debian: https://bugs.debian.org/901177
5 Forwarded: not-yet
6 Author: Helmut Grohne <helmut@subdivi.de>
7 Reviewed-by: gregor herrmann <gregoa@debian.org>
8 Last-Update: 2018-06-09
9
10 --- a/configure.ac
11 +++ b/configure.ac
12 @@ -96,7 +96,7 @@
13     CXXFLAGS="$CXXFLAGS -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -export-dynamic "
14  fi
15  
16 -SUPCXX=`gcc -print-file-name=libsupc++.a`
17 +SUPCXX=`$CC -print-file-name=libsupc++.a`
18  
19  LIBS="$SUPCXX $LIBS"
20