Ticket #4053: GCC6.6.patch
File GCC6.6.patch, 2.0 KB (added by , 8 years ago) |
---|
-
libraries/source/spidermonkey/build.sh
29 29 30 30 CONF_OPTS="--enable-shared-js --disable-tests --without-intl-api" 31 31 32 # Bug 1269319 33 # When compiled with GCC 6 (or later), SpiderMonkey 38 (and versions up to 49) is 34 # subject to segfaults. Disabling a few optimizations fixes that. 35 # See also #4053 36 if [ "${OS}" != "Windows_NT" ] 37 then 38 if [ "`${CXX:=g++} -dumpversion | cut -f1 -d.`" -ge "6" ] 39 then 40 CXXFLAGS="${CXXFLAGS} -fno-schedule-insns2 -fno-delete-null-pointer-checks" 41 fi 42 fi 43 32 44 # Change the default location where the tracelogger should store its output. 33 45 # The default location is . on Windows and /tmp/ on *nix. 34 46 TLCXXFLAGS='-DTRACE_LOG_DIR="\"../../source/tools/tracelogger/\""' … … 91 103 perl -i.bak -pe 's/(SHARED_LIBRARY_NAME\s+=).*/$1 '\''mozjs38-ps-debug'\''/' moz.build 92 104 mkdir -p build-debug 93 105 cd build-debug 94 CXXFLAGS="${ TLCXXFLAGS}" ../configure ${CONF_OPTS} --with-nspr-libs="$NSPR_LIBS" --with-nspr-cflags="$NSPR_INCLUDES" --enable-debug --disable-optimize --enable-js-diagnostics --enable-gczeal106 CXXFLAGS="${CXXFLAGS} ${TLCXXFLAGS}" ../configure ${CONF_OPTS} --with-nspr-libs="$NSPR_LIBS" --with-nspr-cflags="$NSPR_INCLUDES" --enable-debug --disable-optimize --enable-js-diagnostics --enable-gczeal 95 107 ${MAKE} ${MAKE_OPTS} 96 108 cd .. 97 109 … … 98 110 perl -i.bak -pe 's/(SHARED_LIBRARY_NAME\s+=).*/$1 '\''mozjs38-ps-release'\''/' moz.build 99 111 mkdir -p build-release 100 112 cd build-release 101 CXXFLAGS="${ TLCXXFLAGS}" ../configure ${CONF_OPTS} --with-nspr-libs="$NSPR_LIBS" --with-nspr-cflags="$NSPR_INCLUDES" --enable-optimize # --enable-gczeal --enable-debug-symbols113 CXXFLAGS="${CXXFLAGS} ${TLCXXFLAGS}" ../configure ${CONF_OPTS} --with-nspr-libs="$NSPR_LIBS" --with-nspr-cflags="$NSPR_INCLUDES" --enable-optimize # --enable-gczeal --enable-debug-symbols 102 114 ${MAKE} ${MAKE_OPTS} 103 115 cd .. 104 116