summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-05-12 05:10:08 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-05-12 05:10:08 -0400
commit2ead28363add402fc9ebdd9bf46f698b8cf6b616 (patch)
tree3255433276a601e0b7569e6d3574738e23edf42c /acprep
parent6f345c65787b44fe03ce53baaa97933ddc86dd3a (diff)
downloadfork-ledger-2ead28363add402fc9ebdd9bf46f698b8cf6b616.tar.gz
fork-ledger-2ead28363add402fc9ebdd9bf46f698b8cf6b616.tar.bz2
fork-ledger-2ead28363add402fc9ebdd9bf46f698b8cf6b616.zip
Most things are building, but not the Python code
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep13
1 files changed, 9 insertions, 4 deletions
diff --git a/acprep b/acprep
index 847fe948..f6e8bf89 100755
--- a/acprep
+++ b/acprep
@@ -57,7 +57,7 @@ LDFLAGS="$LIBDIRS"
LOCAL=false
# Warning flags
-CXXFLAGS="$CXXFLAGS -Wall -ansi"
+CXXFLAGS="$CXXFLAGS -Wall -ansi -Winvalid-pch"
#CXXFLAGS="$CXXFLAGS -Wextra"
#CXXFLAGS="$CXXFLAGS -Weffc++"
#CXXFLAGS="$CXXFLAGS -Wcast-align"
@@ -78,7 +78,10 @@ CXXFLAGS="$CXXFLAGS -Wall -ansi"
while [ -n "$1" ]; do
case "$1" in
--devel)
- SWITCHES="$SWITCHES --disable-shared --enable-pch"
+ #SWITCHES="$SWITCHES --disable-shared --enable-pch"
+ SWITCHES="$SWITCHES --disable-shared"
+ CPPFLAGS="$CPPFLAGS -DBOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING=1"
+ CPPFLAGS="$CPPFLAGS -DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE=1"
;;
--debug)
@@ -127,13 +130,15 @@ if [ "$LOCAL" = "false" -a -d "$HOME/Products" ]; then
if [ -x version ]; then
version="-$(./version)"
fi
- projdir="$HOME/Products/$(basename $HERE)$version"
+ projdir="$HOME/Products/$(basename $HERE)"
+ rm -fr ${projdir}*
+ projdir="$projdir$version"
if [ ! -d "$projdir" ]; then
mkdir -p "$projdir"
fi
cd "$projdir" || (echo "Cannot change to $projdir"; exit 1)
fi
-"$HERE/configure" --srcdir="$HERE" \
+"$HERE/configure" --srcdir="$HERE" CXX="$CXX" \
CPPFLAGS="$CPPFLAGS" CXXFLAGS="$CXXFLAGS $local_cxxflags" \
LDFLAGS="$LDFLAGS" LIBS="$LIBS" $SWITCHES "$@"