aboutsummaryrefslogtreecommitdiff
path: root/common/m4
diff options
context:
space:
mode:
authorBryan Jurish <mukau@users.sourceforge.net>2009-02-14 21:45:40 +0000
committerBryan Jurish <mukau@users.sourceforge.net>2009-02-14 21:45:40 +0000
commit4630d331bf9eb80e0f1c09cecfb9a0698b188a30 (patch)
tree949d18dbc6c266b8f1270fbd3ec1c98d16251e65 /common/m4
parente8e1fa70fed8e5aa3949fcc0b77ceac47e7ba9fb (diff)
+ fixed debug-vs-optimization buglet in ax_pd_external.m4
svn path=/trunk/externals/moocow/; revision=10777
Diffstat (limited to 'common/m4')
-rw-r--r--common/m4/ax_pd_external.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/common/m4/ax_pd_external.m4 b/common/m4/ax_pd_external.m4
index 66c770b..580ba02 100644
--- a/common/m4/ax_pd_external.m4
+++ b/common/m4/ax_pd_external.m4
@@ -291,7 +291,7 @@ AC_DEFUN([AX_PD_EXTERNAL],
if test "$ENABLE_DEBUG" = "no" -a -z "$UCFLAGS"; then
##-- only set OFLAGS if user CFLAGS are empty
PDEXT_OFLAGS="-O2 -pipe"
- else
+ elif test "$ENABLE_DEBUG" = "yes"; then
PDEXT_OFLAGS="-g"
fi
PDEXT_OFLAGS="$PDEXT_OFLAGS -fPIC"
@@ -308,7 +308,7 @@ AC_DEFUN([AX_PD_EXTERNAL],
if test "$ENABLE_DEBUG" = "no" -a -z "$UCFLAGS"; then
##-- only set OFLAGS if user CFLAGS are empty
PDEXT_OFLAGS="-O2"
- else
+ elif test "$ENABLE_DEBUG" = "yes"; then
PDEXT_OFLAGS="-g"
fi
PDEXT=pd_darwin
@@ -347,7 +347,7 @@ AC_DEFUN([AX_PD_EXTERNAL],
##-- add defaults to user flags
CPPFLAGS="$UCPPFLAGS $PDEXT_IFLAGS $PDEXT_DFLAGS"
- CFLAGS="$UCFLAGS $PDEXT_FLAGS $PDEXT_AFLAGS $PDEXT_WFLAGS"
+ CFLAGS="$UCFLAGS $PDEXT_OFLAGS $PDEXT_AFLAGS $PDEXT_WFLAGS"
LDFLAGS="$ULDFLAGS $PDEXT_LFLAGS"
## END platform-dependent variables