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 81877 a05df19da5636a493f16cd4478411e9902e5cb5c
parent 81876 42e43796e73ff391fdf98de02620060f16144100
child 81878 e07c407ae1b1c5a5f24309881d4808330d09a655
push idunknown
push userunknown
push dateunknown
reviewerskhuey
bugs706474
milestone11.0a1
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_)
         ;;