Bug 706474 - Use -fno-keep-inline-dllexport in mingw builds r=khuey
authorJacek Caban <jacek@codeweavers.com>
Thu, 01 Dec 2011 12:03:15 +0100
changeset 81068 a05df19da5636a493f16cd4478411e9902e5cb5c
parent 81067 42e43796e73ff391fdf98de02620060f16144100
child 81077 e07c407ae1b1c5a5f24309881d4808330d09a655
push id3713
push userjacek@codeweavers.com
push dateThu, 01 Dec 2011 11:04:31 +0000
treeherdermozilla-inbound@a05df19da563 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs706474
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 706474 - Use -fno-keep-inline-dllexport in mingw builds r=khuey
configure.in
js/src/configure.in
--- a/configure.in
+++ b/configure.in
@@ -2666,18 +2666,18 @@ ia64*-hpux*)
             AC_MSG_ERROR([You are targeting i386 but using the 64-bit compiler.])
         fi
 
         if test $_MSC_VER -ge 1400; then
             LDFLAGS="$LDFLAGS -SAFESEH"
         fi
 
         if test -n "$GNU_CC"; then
-            CFLAGS="$CFLAGS -mstackrealign"
-            CXXFLAGS="$CXXFLAGS -mstackrealign"
+            CFLAGS="$CFLAGS -mstackrealign -fno-keep-inline-dllexport"
+            CXXFLAGS="$CXXFLAGS -mstackrealign -fno-keep-inline-dllexport"
         else
             AC_DEFINE(HAVE_STDCALL)
         fi
 
         MOZ_CHECK_HEADERS(mmintrin.h)
     	AC_DEFINE(_X86_)
 	;;
     x86_64-*)
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -2492,18 +2492,18 @@ ia64*-hpux*)
             AC_MSG_ERROR([You are targeting i386 but using the 64-bit compiler.])
         fi
 
         if test $_MSC_VER -ge 1400; then
             LDFLAGS="$LDFLAGS -SAFESEH"
         fi
 
         if test -n "$GNU_CC"; then
-            CFLAGS="$CFLAGS -mstackrealign"
-            CXXFLAGS="$CXXFLAGS -mstackrealign"
+            CFLAGS="$CFLAGS -mstackrealign -fno-keep-inline-dllexport"
+            CXXFLAGS="$CXXFLAGS -mstackrealign -fno-keep-inline-dllexport"
         fi
 
         MOZ_CHECK_HEADERS(mmintrin.h)
     	AC_DEFINE(_X86_)
 	;;
     x86_64-*)
         AC_DEFINE(_AMD64_)
         ;;