diff options
author | kwm <kwm@FreeBSD.org> | 2010-12-15 03:33:15 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2010-12-15 03:33:15 +0800 |
commit | e5472657dd2b7c5f76ecb3d34e7a8a542b8385f1 (patch) | |
tree | fda1ae5e15ce944723dc567217de5a74baf8a189 /devel/libffi | |
parent | e1e0f96eacc3b01ef5baf5a4a0d9c2225fc8e813 (diff) | |
download | freebsd-ports-gnome-e5472657dd2b7c5f76ecb3d34e7a8a542b8385f1.tar.gz freebsd-ports-gnome-e5472657dd2b7c5f76ecb3d34e7a8a542b8385f1.tar.zst freebsd-ports-gnome-e5472657dd2b7c5f76ecb3d34e7a8a542b8385f1.zip |
$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
Diffstat (limited to 'devel/libffi')
-rw-r--r-- | devel/libffi/files/patch-configure | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/devel/libffi/files/patch-configure b/devel/libffi/files/patch-configure index 085a3f5b7f94..dffd4235e917 100644 --- a/devel/libffi/files/patch-configure +++ b/devel/libffi/files/patch-configure @@ -1,5 +1,5 @@ ---- configure.orig 2010-06-03 20:49:28.000000000 +0000 -+++ configure 2010-06-03 20:50:18.000000000 +0000 +--- 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 @@ -10,5 +10,12 @@ 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 + |