зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1440013 For MinGW build, pass -Wa,-mbig-obj to solve 'too many sections' errors r=glandium
MozReview-Commit-ID: 9ObJnrcpeKe --HG-- extra : rebase_source : fb071396e0d34e0baa084cb9b238944f7ffe066c
This commit is contained in:
Родитель
14a79dca9c
Коммит
dd44008d7b
|
@ -123,6 +123,12 @@ if test "$GNU_CC"; then
|
||||||
if test -z "$DEVELOPER_OPTIONS"; then
|
if test -z "$DEVELOPER_OPTIONS"; then
|
||||||
CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"
|
CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"
|
||||||
CXXFLAGS="$CXXFLAGS -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
|
fi
|
||||||
CFLAGS="$CFLAGS -fno-math-errno"
|
CFLAGS="$CFLAGS -fno-math-errno"
|
||||||
CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno"
|
CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче