summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-08 23:20:28 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-08 23:20:28 -0400
commit57d98ac1207241c32ee19c71b4d621c313697bce (patch)
tree16a9c9c4f66b254462a914c5db2e15f2ba4d104f
parente0b108ff3a64ae76d9fa420b35e35f77f30a54e0 (diff)
downloadfork-ledger-57d98ac1207241c32ee19c71b4d621c313697bce.tar.gz
fork-ledger-57d98ac1207241c32ee19c71b4d621c313697bce.tar.bz2
fork-ledger-57d98ac1207241c32ee19c71b4d621c313697bce.zip
acprep now takes a --pch flag, as in "--pch --devel". It must come first.
-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"