summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xacprep9
1 files changed, 6 insertions, 3 deletions
diff --git a/acprep b/acprep
index 11731d4a..6b15fd67 100755
--- a/acprep
+++ b/acprep
@@ -54,6 +54,7 @@ INCDIRS="$INCDIRS -isystem /usr/local/include/boost-$BOOST_VERSION"
INCDIRS="$INCDIRS -isystem $PYTHON_HOME/include/python$PYTHON_VERSION"
+USE_GLIBCXX_DEBUG=true
CXXFLAGS=""
ARCHFLAGS=""
LDARCHFLAGS=""
@@ -178,9 +179,11 @@ DO_BUILD=false
while [ -n "$1" ]; do
case "$1" in
- --devel)
- USE_GLIBCXX_DEBUG=true
+ --pch)
+ USE_GLIBCXX_DEBUG=false
+ shift 1 ;;
+ --devel)
if [[ $USE_GLIBCXX_DEBUG == true ]]; then
CPPFLAGS="$CPPFLAGS -D_GLIBCXX_DEBUG=1"
CPPFLAGS="-isystem /usr/local/stow/cppunit-debug/include $CPPFLAGS"
@@ -214,7 +217,7 @@ while [ -n "$1" ]; do
# Do the same thing as --debug below
SWITCHES="$SWITCHES --enable-debug"
CXXFLAGS="$CXXFLAGS -g"
- LDFLAGS="$LDFLAGS -g"
+ LDFLAGS="$LDFLAGS -g -prebind"
# Warning flags
CXXFLAGS="$CXXFLAGS -Wall -ansi -Winvalid-pch"