diff options
author | Werner Koch <[email protected]> | 2012-01-16 17:45:09 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2012-01-16 17:45:09 +0000 |
commit | eb1c9a44c352ded1bcb9316f5fa0752b61abbb10 (patch) | |
tree | 9f053ad194a29ce45e19e13883f00c8049ff4109 | |
parent | w32: Allow passing a relative name for the tarball (diff) | |
download | gnupg-eb1c9a44c352ded1bcb9316f5fa0752b61abbb10.tar.gz gnupg-eb1c9a44c352ded1bcb9316f5fa0752b61abbb10.zip |
w32: Always build with -fno-omit-frame-pointer.
This is required due to a bug in the mingw32 runtime.
* configure.ac (HAVE_W32_SYSTEM): Force use of -fno-omit-frame-pointer.
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ad08c2388..1a0c58aaa 100644 --- a/configure.ac +++ b/configure.ac @@ -594,6 +594,14 @@ case "${host}" in agent_support=no use_simple_gettext=yes have_w32_system=yes + # gcc 4.6 uses by default -fomit-frame-pointer. This + # conflicts with mingw runtime's setjmp/longjmp usage. The + # actual bug we notice is a segv related to the dlopened + # iconv.dll: After returning from set_native_charset the stack + # frame is corrupt. + if test -n "$GCC" ; then + CFLAGS="$CFLAGS -fno-omit-frame-pointer" + fi ;; i?86-emx-os2 | i?86-*-os2*emx ) # OS/2 with the EMX environment |