Skip to content

Commit

Permalink
Fix build problem: Error: junk `.get_pc_thunk.bx' after expression; t…
Browse files Browse the repository at this point in the history
…rac #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.
  • Loading branch information
Ian Lynagh committed May 19, 2013
1 parent fdd552e commit bf6854b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions aclocal.m4
Expand Up @@ -490,6 +490,13 @@ AC_DEFUN([FP_SETTINGS],
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"
Expand Down

0 comments on commit bf6854b

Please sign in to comment.