[tbb-commits] [tor-browser/tor-browser-60.0.1esr-8.0-1] Bug 1440013 - For MinGW build, pass -Wa, -mbig-obj to solve 'too many sections' errors. r=glandium, a=jcristau

gk at torproject.org gk at torproject.org
Thu Jun 14 12:19:10 UTC 2018


commit 97271ab4577793c2db5a8a9b340a2736aaf784a0
Author: Tom Ritter <tom at mozilla.com>
Date:   Tue Mar 6 16:40:38 2018 -0600

    Bug 1440013 - For MinGW build, pass -Wa,-mbig-obj to solve 'too many sections' errors. r=glandium, a=jcristau
    
    MozReview-Commit-ID: 9ObJnrcpeKe
    
    --HG--
    extra : rebase_source : 074b4f47ef4c578571740606689fe36a20483d1f
    extra : source : f5c601a739458d391a022bf807149e100eff8aae
---
 build/autoconf/compiler-opts.m4 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/build/autoconf/compiler-opts.m4 b/build/autoconf/compiler-opts.m4
index 3d9dc5a80032..b8ff219aa5d2 100644
--- a/build/autoconf/compiler-opts.m4
+++ b/build/autoconf/compiler-opts.m4
@@ -123,6 +123,12 @@ if test "$GNU_CC"; then
     if test -z "$DEVELOPER_OPTIONS"; then
         CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"
         CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections"
+
+        # For MinGW, we need big-obj otherwise we create too many sections in Unified builds
+        if test "${OS_ARCH}" = "WINNT"; then
+            CFLAGS="$CFLAGS -Wa,-mbig-obj"
+            CXXFLAGS="$CXXFLAGS -Wa,-mbig-obj"
+        fi
     fi
     CFLAGS="$CFLAGS -fno-math-errno"
     CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno"





More information about the tbb-commits mailing list