diff options
author | Stefan Krah <skrah@bytereef.org> | 2013-01-16 23:18:34 +0100 |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2013-01-16 23:18:34 +0100 |
commit | 9955518ca08ed69de292447ca5ad39f71d4ee85c (patch) | |
tree | 3dd1e2f96b59a08f276b088c022479303904e07f | |
parent | 32059117dd6f60c053fd54fb62304f75b2061585 (diff) | |
download | cpython-9955518ca08ed69de292447ca5ad39f71d4ee85c.tar.gz |
Issue #11729: Backport commit bff052d9 from libffi upstream in order to fix
a ctypes build failure with clang.
-rwxr-xr-x | Modules/_ctypes/libffi/configure | 6 | ||||
-rw-r--r-- | Modules/_ctypes/libffi/configure.ac | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Modules/_ctypes/libffi/configure b/Modules/_ctypes/libffi/configure index c86a597406..5aacf9ba0c 100755 --- a/Modules/_ctypes/libffi/configure +++ b/Modules/_ctypes/libffi/configure @@ -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 diff --git a/Modules/_ctypes/libffi/configure.ac b/Modules/_ctypes/libffi/configure.ac index d8652aa62b..c16bcb55df 100644 --- a/Modules/_ctypes/libffi/configure.ac +++ b/Modules/_ctypes/libffi/configure.ac @@ -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 |