Bug 1414067 Fix the compiler test for FORTIFY_SOURCE r=glandium
☠☠ backed out by daca25aef92c ☠ ☠
authorTom Ritter <tom@mozilla.com>
Thu, 02 Nov 2017 16:25:30 -0500
changeset 443331 f8eae610782afc8212877b0c3301ca0c31e6dbf7
parent 443330 172216504d787aa6ad0448e929dcfde8c1e8047f
child 443332 09fb1d6fdf42098eedc3a60c341c178670c8d59d
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1414067
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1414067 Fix the compiler test for FORTIFY_SOURCE r=glandium MozReview-Commit-ID: 8ozY0Zbuczx
js/src/old-configure.in
old-configure.in
--- a/js/src/old-configure.in
+++ b/js/src/old-configure.in
@@ -547,17 +547,17 @@ case "$host" in
     ;;
 esac
 
 MOZ_DOING_LTO(lto_is_enabled)
 
 dnl ========================================================
 dnl Add optional and non-optional hardening flags
 dnl ========================================================
-if test "$GNU_CC" -o test -n "${CLANG_CC}${CLANG_CL}"; then
+if test "$GNU_CC" -o -n "${CLANG_CC}${CLANG_CL}"; then
    CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
    CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
    CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2"
 fi
 
 dnl ========================================================
 dnl System overrides of the defaults for target
 dnl ========================================================
--- a/old-configure.in
+++ b/old-configure.in
@@ -495,17 +495,17 @@ fi
 
 dnl ========================================================
 dnl Add optional and non-optional hardening flags
 dnl ========================================================
 CFLAGS="$CFLAGS $HARDENING_CFLAGS"
 CPPFLAGS="$CPPFLAGS $HARDENING_CFLAGS"
 CXXFLAGS="$CXXFLAGS $HARDENING_CFLAGS"
 
-if test "$GNU_CC" -o test -n "${CLANG_CC}${CLANG_CL}"; then
+if test "$GNU_CC" -o -n "${CLANG_CC}${CLANG_CL}"; then
    CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
    CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
    CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2"
 fi
 
 dnl ========================================================
 dnl GNU specific defaults
 dnl ========================================================