Added execstack back in since it really is needed on some platforms.

This commit is contained in:
Clifford T. Matthews 2009-06-06 11:49:53 -06:00
parent e33db7b097
commit 4b93c68bc4
2 changed files with 16 additions and 1 deletions

View File

@ -135,6 +135,21 @@ AC_CHECK_FUNCS([getpagesize memmove memset strchr strdup strerror strstr])
#AC_SUBST(SUBDIRS)
# The following is taken from wine-0.9.25's configure.ac
AC_SUBST(EXECSTACK,"")
saved_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -z execstack"
AC_CACHE_CHECK([for -z execstack], ac_cv_z_execstack,
AC_TRY_LINK([],[int main(void) {return 0;}],
ac_cv_z_execstack=yes,ac_cv_z_execstack=no))
if test $ac_cv_z_execstack
then
EXECSTACK="-z execstack"
fi
LDFLAGS="$saved_LDFLAGS"
AM_CONDITIONAL([M68K_HOSTCPU], [test "$host_alias" = "m68k-next-ns3"])
AC_CONFIG_FILES([Makefile

View File

@ -19,7 +19,7 @@ testbattery.c: tests.c maketestbattery.pl
syngentest_LDADD = ../runtime/libsyn68k.a
syngentest_LDFLAGS =
syngentest_LDFLAGS = @EXECSTACK@
INCLUDES = -I$(srcdir)/include -I$(srcdir)/../include -I../include