Ticket #4053: GCC6.3.patch
File GCC6.3.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 # If the compiler is GCC 6 (or later), we need to disable some optimizations. 33 # Indeed, SpiderMonkey 38, when compiled with GCC6 or later, can segfault during GC. 34 if [ "${OS}" != "Windows_NT" -a "${CXX:=g++}" = "g++" ] 35 then 36 if [ "`g++ -dumpversion | cut -f1 -d.`" -ge "6" ] 37 then 38 CXXFLAGS="${CXXFLAGS} -fno-schedule-insns2 -fno-delete-null-pointer-checks" 39 fi 40 fi 41 32 42 # Change the default location where the tracelogger should store its output. 33 43 # The default location is . on Windows and /tmp/ on *nix. 34 44 TLCXXFLAGS='-DTRACE_LOG_DIR="\"../../source/tools/tracelogger/\""' … … 91 101 perl -i.bak -pe 's/(SHARED_LIBRARY_NAME\s+=).*/$1 '\''mozjs38-ps-debug'\''/' moz.build 92 102 mkdir -p build-debug 93 103 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-gczeal104 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 105 ${MAKE} ${MAKE_OPTS} 96 106 cd .. 97 107 … … 98 108 perl -i.bak -pe 's/(SHARED_LIBRARY_NAME\s+=).*/$1 '\''mozjs38-ps-release'\''/' moz.build 99 109 mkdir -p build-release 100 110 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-symbols111 CXXFLAGS="${CXXFLAGS} ${TLCXXFLAGS}" ../configure ${CONF_OPTS} --with-nspr-libs="$NSPR_LIBS" --with-nspr-cflags="$NSPR_INCLUDES" --enable-optimize # --enable-gczeal --enable-debug-symbols 102 112 ${MAKE} ${MAKE_OPTS} 103 113 cd .. 104 114