From 8fb696e4c8f78ee8d8b5b8263ef88176b4024568 Mon Sep 17 00:00:00 2001 From: "wtchang%redhat.com" Date: Thu, 5 Jan 2006 18:07:04 +0000 Subject: [PATCH] Bugzilla Bug 156605: disable executable stacks in the Mozilla clients on Solaris. The patch is contributed by Alfred Peng . r=wtc. sr=bsmedberg. git-svn-id: svn://10.0.0.236/trunk@186996 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mozilla/configure.in b/mozilla/configure.in index df10bf039ff..23cc9b50cef 100644 --- a/mozilla/configure.in +++ b/mozilla/configure.in @@ -2027,6 +2027,14 @@ dnl the qsort routine under solaris is faulty CFLAGS="$CFLAGS -xstrconst -xbuiltin=%all" CXXFLAGS="$CXXFLAGS -xbuiltin=%all -features=tmplife -norunpath" LDFLAGS="-xildoff -z lazyload -z combreloc $LDFLAGS" + if test -z "$CROSS_COMPILE" && test -f /usr/lib/ld/map.noexstk; then + _SAVE_LDFLAGS=$LDFLAGS + LDFLAGS="-M /usr/lib/ld/map.noexstk $LDFLAGS" + AC_TRY_LINK([#include ], + [printf("Hello World\n");], + , + [LDFLAGS=$_SAVE_LDFLAGS]) + fi MOZ_OPTIMIZE_FLAGS="-xO4" MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_FLAGS) $(DSO_LDOPTS) -h $@ -o $@' MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -z muldefs -h $@ -o $@'