diff options
author | unknown <acurtis@ltamd64.xiphis.org> | 2006-06-22 11:00:01 -0700 |
---|---|---|
committer | unknown <acurtis@ltamd64.xiphis.org> | 2006-06-22 11:00:01 -0700 |
commit | 27066f4f53a083c2a5005d6a628159ee3457730f (patch) | |
tree | e048be8b5b1a43f0ea120dbd3ddf1458e9f4f901 /config | |
parent | 54b38dd6b514a4a683dfd5376be3cb70b45b9a20 (diff) | |
parent | edcba74415fc7a2ead3d65628d22efab598a61b8 (diff) | |
download | mariadb-git-27066f4f53a083c2a5005d6a628159ee3457730f.tar.gz |
Merge xiphis.org:/home/antony/work2/p4-bug12096.2
into xiphis.org:/home/antony/work2/p4-bug12096.3
configure.in:
Auto merged
sql/mysqld.cc:
Auto merged
strings/Makefile.am:
Auto merged
Diffstat (limited to 'config')
-rw-r--r-- | config/ac-macros/compiler_flag.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/config/ac-macros/compiler_flag.m4 b/config/ac-macros/compiler_flag.m4 index a236f61a198..88097c7a62e 100644 --- a/config/ac-macros/compiler_flag.m4 +++ b/config/ac-macros/compiler_flag.m4 @@ -38,3 +38,25 @@ AC_DEFUN([AC_SYS_OS_COMPILER_FLAG], fi ]) +AC_DEFUN([AC_CHECK_NOEXECSTACK], +[ + AC_CACHE_CHECK(whether --noexecstack is desirable for .S files, + mysql_cv_as_noexecstack, [dnl + cat > conftest.c <<EOF +void foo (void) { } +EOF + if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS + -S -o conftest.s conftest.c 1>&AS_MESSAGE_LOG_FD]) \ + && grep .note.GNU-stack conftest.s >/dev/null \ + && AC_TRY_COMMAND([${CC-cc} $CCASFLAGS $CPPFLAGS -Wa,--noexecstack + -c -o conftest.o conftest.s 1>&AS_MESSAGE_LOG_FD]) + then + mysql_cv_as_noexecstack=yes + else + mysql_cv_as_noexecstack=no + fi + rm -f conftest*]) + if test $mysql_cv_as_noexecstack = yes; then + CCASFLAGS="$CCASFLAGS -Wa,--noexecstack" + fi +]) |