Line
Link Here
|
0 |
-- a/build/autoconf/compiler-opts.m4 |
0 |
++ b/build/autoconf/compiler-opts.m4 |
Lines 269-277
Link Here
|
269 |
if test "$GNU_CC" -a -n "$MOZ_PIE"; then |
269 |
if test "$GNU_CC" -a -n "$MOZ_PIE"; then |
270 |
AC_MSG_CHECKING([for PIE support]) |
270 |
AC_MSG_CHECKING([for PIE support]) |
271 |
_SAVE_LDFLAGS=$LDFLAGS |
271 |
_SAVE_LDFLAGS=$LDFLAGS |
272 |
LDFLAGS="$LDFLAGS -pie" |
272 |
LDFLAGS="$LDFLAGS -fPIE" |
273 |
AC_TRY_LINK(,,AC_MSG_RESULT([yes]) |
273 |
AC_TRY_LINK(,,AC_MSG_RESULT([yes]) |
274 |
[MOZ_PROGRAM_LDFLAGS="$MOZ_PROGRAM_LDFLAGS -pie"], |
274 |
[MOZ_PROGRAM_LDFLAGS="$MOZ_PROGRAM_LDFLAGS -fPIE"], |
275 |
AC_MSG_RESULT([no]) |
275 |
AC_MSG_RESULT([no]) |
276 |
AC_MSG_ERROR([--enable-pie requires PIE support from the linker.])) |
276 |
AC_MSG_ERROR([--enable-pie requires PIE support from the linker.])) |
277 |
LDFLAGS=$_SAVE_LDFLAGS |
277 |
LDFLAGS=$_SAVE_LDFLAGS |