freebsd-ports/lang/python27/files/patch-configure
Marcus von Appen 996e4b60c3 - Fix the -OPT:Olimit=X detection for clang, which could pollute the
output of python27-config --cflags

PR:		ports/172859 ports/161494 ports/174525
Submitted by:	Oleg Nauman <oleg.nauman@gmail.com>
2013-01-14 17:56:47 +00:00

13 lines
426 B
Text

--- configure.orig 2013-01-14 13:38:53.000000000 +0000
+++ configure 2013-01-14 13:39:14.000000000 +0000
@@ -5642,8 +5642,8 @@
BASECFLAGS="$BASECFLAGS $ac_arch_flags"
fi
-# disable check for icc since it seems to pass, but generates a warning
-if test "$CC" = icc
+# disable check for icc and clang since it seems to pass, but generates a warning
+if test "$CC" = icc -o "$CC" = clang
then
ac_cv_opt_olimit_ok=no
fi