|
From: <cn...@us...> - 2019-10-31 01:59:40
|
Revision: 983
http://sourceforge.net/p/seq/svn/983
Author: cn187
Date: 2019-10-31 01:59:39 +0000 (Thu, 31 Oct 2019)
Log Message:
-----------
Fix enabling/disabling of optimization
Modified Paths:
--------------
showeq/branches/pre_6_0_beta/configure.in
Modified: showeq/branches/pre_6_0_beta/configure.in
===================================================================
--- showeq/branches/pre_6_0_beta/configure.in 2019-10-31 01:59:34 UTC (rev 982)
+++ showeq/branches/pre_6_0_beta/configure.in 2019-10-31 01:59:39 UTC (rev 983)
@@ -22,6 +22,15 @@
dnl DX_PS_FEATURE(OFF)
dnl DX_INIT_DOXYGEN(ShowEQ, doxygen.cfg, dox)
+
+dnl per autoconf manual (section 5.10.4), set default CXXFLAGS to empty so gcc
+dnl doesn't automatically add optimization flags, making it difficult to
+dnl disable optimization for debugging purposes.
+dnl NOTE: this doesn't stop the user from setting their own CXXFLAGS value
+dnl in their environment or on the command line.
+: ${CXXFLAGS=""}
+
+
dnl Use CCd/CXXd rather than CC/CXX otherwise it cache's the value
dnl and prevents the alternate search from working. Would be better
dnl if there was someway to invalidate the cache entry. ??
@@ -323,8 +332,8 @@
;;
no)
AC_MSG_RESULT(no)
- USE_OPT_C=
- USE_OPT_CXX=
+ USE_OPT_C="-O0"
+ USE_OPT_CXX="-O0"
ac_cv_showeq_optimization=no
;;
6)
@@ -354,9 +363,9 @@
esac
],
[ AC_MSG_RESULT(yes)
- USE_OPT_C="-02"
+ USE_OPT_C="-O2"
USE_OPT_CXX="-O2"
- ac_cv_sins_optimization=yes
+ ac_cv_showeq_optimization=yes
]
)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|