summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>2013-06-11 11:58:44 +0000
committerFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>2013-06-11 11:58:44 +0000
commite99f2dde2955e9df429cccd38428443b8b93b429 (patch)
treea8fbc785d58cbe7374fb180f3fdbd46f4c2d4a94
parentdb98eb647c4ae7ebdbb3b6c59f13bfefe754cd40 (diff)
Add -fno-omit-frame-pointers to gcc when compiling with -with-frame-pointers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13765 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 599d855ad..4dbf21fb0 100755
--- a/configure
+++ b/configure
@@ -1584,6 +1584,13 @@ if test "$with_frame_pointers" = "true"; then
nativecccompopts="$nativecccompopts -g"
nativecclinkopts="$nativecclinkopts -g"
echo "#define WITH_FRAME_POINTERS" >> m.h
+
+ case "$cc" in
+ gcc*)
+ bytecccompopts="$bytecccompopts -fno-omit-frame-pointer"
+ nativecccompopts="$nativecccompopts -fno-omit-frame-pointer";;
+ esac
+
fi