diff options
author | Haru <haru@dotalux.com> | 2016-07-12 18:55:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-12 18:55:41 +0200 |
commit | 4b8dd1cdaadba7ae2200f114a4e11ef62454eaa1 (patch) | |
tree | 102a3105fc4925f741acd50844707eda7c770bab /configure | |
parent | 2ad22218d470de6397f78e3ec1d0699d32295dec (diff) | |
parent | cccd6d9d04e755aa8194ef86d27405021d5a8f4e (diff) | |
download | hercules-4b8dd1cdaadba7ae2200f114a4e11ef62454eaa1.tar.gz hercules-4b8dd1cdaadba7ae2200f114a4e11ef62454eaa1.tar.bz2 hercules-4b8dd1cdaadba7ae2200f114a4e11ef62454eaa1.tar.xz hercules-4b8dd1cdaadba7ae2200f114a4e11ef62454eaa1.zip |
Merge pull request #1357 from 4144/travisfix
Add omit frame pointer flag if sanity flags enabled.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 31 |
1 files changed, 30 insertions, 1 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac 6a3c3cc. +# From configure.ac 302aefb. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69. # @@ -5194,6 +5194,8 @@ fi + + # # sanitize Support test # @@ -6064,6 +6066,33 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-omit-frame-pointer" >&5 +$as_echo_n "checking whether $CC supports -fno-omit-frame-pointer... " >&6; } + OLD_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -fno-omit-frame-pointer" + OLD_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -fno-omit-frame-pointer" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + CFLAGS="$OLD_CFLAGS" + LDFLAGS="$OLD_LDFLAGS" + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + fi fi |