зеркало из https://github.com/mozilla/pjs.git
Bug 671426 - Avoid marking binaries as requiring executable stack. r=ted
This commit is contained in:
Родитель
b8087b89df
Коммит
1354c28a8f
13
configure.in
13
configure.in
|
@ -1724,6 +1724,19 @@ if test "$GNU_CC"; then
|
|||
DSO_CFLAGS=''
|
||||
DSO_PIC_CFLAGS='-fPIC'
|
||||
ASFLAGS="$ASFLAGS -fPIC"
|
||||
AC_MSG_CHECKING([for --noexecstack option to as])
|
||||
_SAVE_CFLAGS=$CFLAGS
|
||||
CFLAGS="$CFLAGS -Wa,--noexecstack"
|
||||
AC_TRY_COMPILE(,,AC_MSG_RESULT([yes])
|
||||
[ASFLAGS="$ASFLAGS -Wa,--noexecstack"],
|
||||
AC_MSG_RESULT([no]))
|
||||
CFLAGS=$_SAVE_CFLAGS
|
||||
AC_MSG_CHECKING([for -z noexecstack option to ld])
|
||||
_SAVE_LDFLAGS=$LDFLAGS
|
||||
LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
|
||||
AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
|
||||
AC_MSG_RESULT([no])
|
||||
LDFLAGS=$_SAVE_LDFLAGS)
|
||||
_MOZ_RTTI_FLAGS_ON=-frtti
|
||||
_MOZ_RTTI_FLAGS_OFF=-fno-rtti
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче