[commit: ghc] master: Fix build problem: Error: junk `.get_pc_thunk.bx' after expression; trac #7799 (bf6854b)
Ian Lynagh
igloo at earth.li
Sun May 19 19:33:01 CEST 2013
Repository : http://darcs.haskell.org/ghc.git/
On branch : master
https://github.com/ghc/ghc/commit/bf6854bb44f833ec331e2f2c55a825dbaaa2aeec
>---------------------------------------------------------------
commit bf6854bb44f833ec331e2f2c55a825dbaaa2aeec
Author: Ian Lynagh <ian at well-typed.com>
Date: Sun May 19 16:38:37 2013 +0100
Fix build problem: Error: junk `.get_pc_thunk.bx' after expression; trac #7799
Affects i386 only. Some gcc's generate code containing __i686, and then
define that symbol to 1, which causes compilation to fail. We undef
the symbol to work around it.
>---------------------------------------------------------------
aclocal.m4 | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/aclocal.m4 b/aclocal.m4
index 94f34b3..720e0d5 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -492,6 +492,13 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS],
AC_MSG_CHECKING([Setting up $2, $3, $4 and $5])
case $$1 in
i386-apple-darwin)
+ # Workaround for #7799
+ $2="$$2 -U__i686"
+ ;;
+ esac
+
+ case $$1 in
+ i386-apple-darwin)
$2="$$2 -m32"
$3="$$3 -m32"
$4="$$4 -arch i386"
More information about the ghc-commits
mailing list