freebsd-ports/devel/libffi/files/patch-configure
Koop Mast 62ea53c8fb $CFLAGS are redundant for compiling .s files.
GCC stays quiet, but Clang gives a warning of unused arguments.
The configure check greps for warning, so the check fails.
Remove $CFLAGS to clang doesn't emit the warnings.

PR:		ports/152480
Submitted by:	me
Patch by:	dim@
Approved by:	maintainer
2010-12-14 19:33:15 +00:00

21 lines
639 B
Text

--- configure.orig 2010-11-22 12:53:14.000000000 +0100
+++ configure 2010-11-22 12:53:26.000000000 +0100
@@ -12231,6 +12231,9 @@
powerpc-*-freebsd*)
TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
;;
+ powerpc64-*-freebsd*)
+ TARGET=POWERPC; TARGETDIR=powerpc
+ ;;
powerpc*-*-rtems*)
TARGET=POWERPC; TARGETDIR=powerpc
;;
@@ -14484,7 +14487,7 @@
libffi_cv_as_x86_pcrel=yes
echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
- if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
+ if $CC -c conftest.s 2>&1 | grep -i warning > /dev/null; then
libffi_cv_as_x86_pcrel=no
fi