Bugzilla Bug 156605: disable executable stacks in the Mozilla clients on
Solaris. The patch is contributed by Alfred Peng <alfred.peng@sun.com>. r=wtc. sr=bsmedberg. git-svn-id: svn://10.0.0.236/trunk@186996 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
430f534268
commit
8fb696e4c8
@ -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 <stdio.h>],
|
||||
[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 $@'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user