зеркало из https://github.com/mozilla/gecko-dev.git
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.
This commit is contained in:
Родитель
c3d7007a30
Коммит
b3e25cf24d
|
@ -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 $@'
|
||||
|
|
Загрузка…
Ссылка в новой задаче