From ac9b0a8e5790b3416d541c4791abb645729d700c Mon Sep 17 00:00:00 2001 From: Carlos Rodrigues Date: Sat, 14 Mar 2015 14:05:40 +0000 Subject: [PATCH] Make sure no optimizations are used in debug mode on MacOS X. --- kyotocabinet/configure | 2 +- kyotocabinet/configure.in | 2 +- kyototycoon/configure | 2 +- kyototycoon/configure.in | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kyotocabinet/configure b/kyotocabinet/configure index 5743a7f..0ec5e84 100755 --- a/kyotocabinet/configure +++ b/kyotocabinet/configure @@ -4566,7 +4566,7 @@ then fi # Work around of bugs of some environments -if uname | grep Darwin >config.tmp +if test "$enable_opt" != "no" && test "$enable_debug" != "yes" && uname | grep Darwin >config.tmp then MYCFLAGS="$MYCFLAGS -Os" MYCXXFLAGS="$MYCXXFLAGS -Os" diff --git a/kyotocabinet/configure.in b/kyotocabinet/configure.in index 3baccb5..9247d06 100644 --- a/kyotocabinet/configure.in +++ b/kyotocabinet/configure.in @@ -329,7 +329,7 @@ then fi # Work around of bugs of some environments -if uname | grep Darwin >config.tmp +if test "$enable_opt" != "no" && test "$enable_debug" != "yes" && uname | grep Darwin >config.tmp then MYCFLAGS="$MYCFLAGS -Os" MYCXXFLAGS="$MYCXXFLAGS -Os" diff --git a/kyototycoon/configure b/kyototycoon/configure index 7ac4be4..4aa77df 100755 --- a/kyototycoon/configure +++ b/kyototycoon/configure @@ -4603,7 +4603,7 @@ then fi # Work around of bugs of some environments -if uname | grep Darwin >config.tmp +if test "$enable_opt" != "no" && test "$enable_debug" != "yes" && uname | grep Darwin >config.tmp then MYCFLAGS="$MYCFLAGS -Os" MYCXXFLAGS="$MYCXXFLAGS -Os" diff --git a/kyototycoon/configure.in b/kyototycoon/configure.in index fcbebf3..f319d38 100644 --- a/kyototycoon/configure.in +++ b/kyototycoon/configure.in @@ -351,7 +351,7 @@ then fi # Work around of bugs of some environments -if uname | grep Darwin >config.tmp +if test "$enable_opt" != "no" && test "$enable_debug" != "yes" && uname | grep Darwin >config.tmp then MYCFLAGS="$MYCFLAGS -Os" MYCXXFLAGS="$MYCXXFLAGS -Os"