Bug 751511 - Don't use the -fno-common flag. r=ted
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 04 May 2012 09:47:40 +0200
changeset 94514 5854da577bcb0c85053a210d548770233811aa94
parent 94513 b162f27251fbd43e91c137bbce3529b09c4821f4
child 94515 6a9a1e259aeb60d5cd2e45146bb6c6324f43e87f
push idunknown
push userunknown
push dateunknown
reviewersted
bugs751511
milestone15.0a1
Bug 751511 - Don't use the -fno-common flag. r=ted
configure.in
--- a/configure.in
+++ b/configure.in
@@ -2227,18 +2227,16 @@ case "$target" in
     MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
     MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
     MOZ_OPTIMIZE_FLAGS="-O3"
     _PEDANTIC=
     # Statically disable jemalloc on 10.5 and 32-bit 10.6.  See bug 702250.
     if test "$HAVE_64BIT_OS"; then
         MOZ_MEMORY=1
     fi
-    CFLAGS="$CFLAGS -fno-common"
-    CXXFLAGS="$CXXFLAGS -fno-common"
     DLL_SUFFIX=".dylib"
     DSO_LDOPTS=''
     STRIP="$STRIP -x -S"
     # Check whether we're targeting OS X or iOS
     AC_CACHE_CHECK(for iOS target,
                    ac_cv_ios_target,
                    [AC_TRY_COMPILE([#include <TargetConditionals.h>
 #if !(TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)