Alexandre Julliard : configure: Pass the -fasynchronous-unwind-tables flag to winegcc when supported.

Alexandre Julliard julliard at winehq.org
Mon Apr 12 09:54:06 CDT 2010


Module: wine
Branch: master
Commit: 6c142387289ec3dac7530cdd287f63058badcd6b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6c142387289ec3dac7530cdd287f63058badcd6b

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sun Apr 11 12:47:30 2010 +0200

configure: Pass the -fasynchronous-unwind-tables flag to winegcc when supported.

---

 Make.rules.in |    3 +--
 configure     |    4 ++++
 configure.ac  |    1 +
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Make.rules.in b/Make.rules.in
index 0f9c02a..7b571ed 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -61,7 +61,6 @@ ALLCFLAGS    = $(INCLUDES) $(DEFS) $(DLLFLAGS) $(EXTRACFLAGS) $(CPPFLAGS) $(CFLA
 ALLLINTFLAGS = $(INCLUDES) $(DEFS) $(LINTFLAGS)
 IDLFLAGS     = $(INCLUDES) $(DEFS) $(EXTRAIDLFLAGS)
 TARGETFLAGS  = @TARGETFLAGS@
-WINEBUILDFLAGS = $(TARGETFLAGS) $(DLLFLAGS)
 MKINSTALLDIRS= $(TOPSRCDIR)/tools/mkinstalldirs -m 755
 WINAPI_CHECK = $(TOPSRCDIR)/tools/winapi/winapi_check
 BUILDICON    = $(TOPSRCDIR)/tools/buildicon
@@ -73,7 +72,7 @@ MAKECTESTS   = $(TOOLSDIR)/tools/make_ctests$(TOOLSEXT)
 WRC          = $(TOOLSDIR)/tools/wrc/wrc$(TOOLSEXT)
 WMC          = $(TOOLSDIR)/tools/wmc/wmc$(TOOLSEXT)
 WIDL         = $(TOOLSDIR)/tools/widl/widl$(TOOLSEXT)
-WINEGCC      = $(TOOLSDIR)/tools/winegcc/winegcc $(TARGETFLAGS) -B$(TOOLSDIR)/tools/winebuild --sysroot=$(TOPOBJDIR)
+WINEGCC      = $(TOOLSDIR)/tools/winegcc/winegcc $(TARGETFLAGS) -B$(TOOLSDIR)/tools/winebuild --sysroot=$(TOPOBJDIR) @UNWINDFLAGS@
 CROSSWINEGCC = $(TOOLSDIR)/tools/winegcc/winegcc $(CROSSTARGET:%=-b %) -B$(TOOLSDIR)/tools/winebuild --sysroot=$(TOPOBJDIR) --lib-suffix=.cross.a
 RELPATH      = $(TOOLSDIR)/tools/relpath$(TOOLSEXT)
 SFNT2FNT     = $(TOOLSDIR)/tools/sfnt2fnt$(TOOLSEXT)
diff --git a/configure b/configure
index e021e48..6db971a 100755
--- a/configure
+++ b/configure
@@ -607,6 +607,7 @@ SOCKETLIBS
 CRTLIBS
 TOOLSEXT
 LDPATH
+UNWINDFLAGS
 BUILTINFLAG
 EXTRACFLAGS
 LIBKSTAT
@@ -12195,6 +12196,8 @@ then
 
 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
 
+   UNWINDFLAGS=-fasynchronous-unwind-tables
+
 else
    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
 
@@ -13932,6 +13935,7 @@ esac
 
 
 
+
 ac_config_commands="$ac_config_commands include/stamp-h"
 
 
diff --git a/configure.ac b/configure.ac
index f39347e..bd1276b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1693,6 +1693,7 @@ then
    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
    AC_DEFINE([__ASM_CFI(str)],[str],[Define to a macro to output a .cfi assembly pseudo-op])
+   AC_SUBST([UNWINDFLAGS],[-fasynchronous-unwind-tables])
 else
    AC_DEFINE([__ASM_CFI(str)],[""])
 fi




More information about the wine-cvs mailing list