* [gentoo-commits] gentoo-x86 commit in dev-libs/libffi/files: libffi-3.0.11-x86-pic-check.patch
@ 2013-01-13 4:52 Mike Frysinger (vapier)
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger (vapier) @ 2013-01-13 4:52 UTC (permalink / raw
To: gentoo-commits
vapier 13/01/13 04:52:11
Added: libffi-3.0.11-x86-pic-check.patch
Log:
Add fix from upstream for PIC compile checks #417179 by Richard Yao.
(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
Revision Changes Path
1.1 dev-libs/libffi/files/libffi-3.0.11-x86-pic-check.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/files/libffi-3.0.11-x86-pic-check.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/files/libffi-3.0.11-x86-pic-check.patch?rev=1.1&content-type=text/plain
Index: libffi-3.0.11-x86-pic-check.patch
===================================================================
https://bugs.gentoo.org/417179
https://github.com/atgreen/libffi/issues/21
From bff052d9cd5be41ba9e47c76114054af487d3c30 Mon Sep 17 00:00:00 2001
From: Anthony Green <green@moxielogic.com>
Date: Fri, 11 Jan 2013 10:24:32 -0500
Subject: [PATCH] 32-bit x86 fix and more
---
ChangeLog | 8 ++++++++
README | 2 ++
configure | 43 +++++--------------------------------------
configure.ac | 6 +++---
m4/ax_cc_maxopt.m4 | 3 ++-
5 files changed, 20 insertions(+), 42 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5ca32fd..32ec7c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -334,10 +334,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
diff --git a/m4/ax_cc_maxopt.m4 b/m4/ax_cc_maxopt.m4
index f5f7517..62e3b53 100644
--- a/m4/ax_cc_maxopt.m4
+++ b/m4/ax_cc_maxopt.m4
@@ -141,7 +141,8 @@ if test "$ac_test_CFLAGS" != "set"; then
CFLAGS="-O3 -fomit-frame-pointer"
# -malign-double for x86 systems
- AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
+ # LIBFFI -- DON'T DO THIS - CHANGES ABI
+ # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
# -fstrict-aliasing for gcc-2.95+
AX_CHECK_COMPILE_FLAG(-fstrict-aliasing,
diff --git a/configure b/configure
index 95d950b..41bde69 100755
--- a/configure
+++ b/configure
@@ -12426,41 +12426,8 @@ $as_echo "$icc_archflag" >&6; }
CFLAGS="-O3 -fomit-frame-pointer"
# -malign-double for x86 systems
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
-$as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
-if ${ax_cv_check_cflags___malign_double+:} false; then :
- $as_echo_n "(cached) " >&6
-else
-
- ax_check_save_flags=$CFLAGS
- CFLAGS="$CFLAGS -malign-double"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ax_cv_check_cflags___malign_double=yes
-else
- ax_cv_check_cflags___malign_double=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CFLAGS=$ax_check_save_flags
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5
-$as_echo "$ax_cv_check_cflags___malign_double" >&6; }
-if test x"$ax_cv_check_cflags___malign_double" = xyes; then :
- CFLAGS="$CFLAGS -malign-double"
-else
- :
-fi
-
+ # LIBFFI -- DON'T DO THIS - CHANGES ABI
+ # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
# -fstrict-aliasing for gcc-2.95+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
@@ -14480,10 +14447,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
--
1.7.10
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in dev-libs/libffi/files: libffi-3.0.11-x86-pic-check.patch
@ 2014-05-27 17:14 Samuli Suominen (ssuominen)
0 siblings, 0 replies; 2+ messages in thread
From: Samuli Suominen (ssuominen) @ 2014-05-27 17:14 UTC (permalink / raw
To: gentoo-commits
ssuominen 14/05/27 17:14:04
Removed: libffi-3.0.11-x86-pic-check.patch
Log:
old
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-27 17:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-27 17:14 [gentoo-commits] gentoo-x86 commit in dev-libs/libffi/files: libffi-3.0.11-x86-pic-check.patch Samuli Suominen (ssuominen)
-- strict thread matches above, loose matches on Subject: below --
2013-01-13 4:52 Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox