]> granicus.if.org Git - python/commitdiff
Issue #11729: Backport commit bff052d9 from libffi upstream in order to fix
authorStefan Krah <skrah@bytereef.org>
Wed, 16 Jan 2013 22:18:34 +0000 (23:18 +0100)
committerStefan Krah <skrah@bytereef.org>
Wed, 16 Jan 2013 22:18:34 +0000 (23:18 +0100)
a ctypes build failure with clang.

Modules/_ctypes/libffi/configure
Modules/_ctypes/libffi/configure.ac

index c86a5974069b959e73f000c0ea22327764d9ad51..5aacf9ba0c4259a0f48319f52f64652160a14e00 100755 (executable)
@@ -14322,10 +14322,10 @@ if ${libffi_cv_as_x86_pcrel+:} false; then :
   $as_echo_n "(cached) " >&6
 else
 
-       libffi_cv_as_x86_pcrel=yes
+       libffi_cv_as_x86_pcrel=no
        echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
-       if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
-           libffi_cv_as_x86_pcrel=no
+       if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
+           libffi_cv_as_x86_pcrel=yes
        fi
 
 fi
index d8652aa62b60ac43d26027c3f1885b465caa181d..c16bcb55dfdcfe1f3f14259b299800431b37fd98 100644 (file)
@@ -303,10 +303,10 @@ fi
 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
     AC_CACHE_CHECK([assembler supports pc related relocs],
        libffi_cv_as_x86_pcrel, [
-       libffi_cv_as_x86_pcrel=yes
+       libffi_cv_as_x86_pcrel=no
        echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
-       if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
-           libffi_cv_as_x86_pcrel=no
+       if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
+           libffi_cv_as_x86_pcrel=yes
        fi
        ])
     if test "x$libffi_cv_as_x86_pcrel" = xyes; then