From 9d94c3f7f1079051789c9cd6f210a4fadb86cfee Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 2 Dec 2017 20:03:02 +0100 Subject: [PATCH] radare2: don't fiddle with $CC. --- srcpkgs/radare2/patches/trust-cc.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/radare2/patches/trust-cc.patch diff --git a/srcpkgs/radare2/patches/trust-cc.patch b/srcpkgs/radare2/patches/trust-cc.patch new file mode 100644 index 00000000000..fc9c3c6e355 --- /dev/null +++ b/srcpkgs/radare2/patches/trust-cc.patch @@ -0,0 +1,13 @@ +--- configure.orig ++++ configure +@@ -330,10 +330,6 @@ + COMPILER=CC + printf "checking for c compiler... " + HAVE_LANG_C=1 +-if [ "${CROSSBUILD}" = 1 ]; then +- (command -v ${HOST}-${CC} >/dev/null 2>&1) +- if [ $? = 0 ]; then CC="${HOST}-${CC}"; fi +-fi + echo "int main(int argc, char **argv){return 0;}" > test.c + (exec ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} test.c >/dev/null 2>&1) + if [ $? = 0 ]; then echo ${CC}; else