summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-04 05:27:36 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:37 -0400
commit6c7e35dc17504c41bb177b3d1327c6b6cee4017d (patch)
treea86913687b2881a5c3dedbcf53adf9591791adcc /acprep
parent90975c27d0a701a66ee4d24ea8f08a12eda6cfce (diff)
downloadfork-ledger-6c7e35dc17504c41bb177b3d1327c6b6cee4017d.tar.gz
fork-ledger-6c7e35dc17504c41bb177b3d1327c6b6cee4017d.tar.bz2
fork-ledger-6c7e35dc17504c41bb177b3d1327c6b6cee4017d.zip
*** no comment ***
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep10
1 files changed, 8 insertions, 2 deletions
diff --git a/acprep b/acprep
index 45ce5348..c0708f91 100755
--- a/acprep
+++ b/acprep
@@ -49,12 +49,18 @@ fi
# since there are no clients except a GUI tool which might use it (and
# that is built again anyway by Xcode).
SWITCHES="--disable-shared --enable-pch"
+CPPFLAGS="$INCDIRS"
+LDFLAGS="$LIBDIRS"
while [ -n "$1" ]; do
case "$1" in
--debug)
SWITCHES="$SWITCHES --enable-debug"
+ if [ -f /usr/local/lib/libstlportstlg.a ]; then
+ CPPFLAGS="-I/usr/local/include/stlport -D_STLP_DEBUG $CPPFLAGS"
+ #LDFLAGS="-lstlportstlg $LDFLAGS"
+ fi
CXXFLAGS="$CXXFLAGS -g" ;;
--prof | --perf)
@@ -96,5 +102,5 @@ if [ -d "$HOME/Products" ]; then
fi
"$HERE/configure" --srcdir="$HERE" \
- CPPFLAGS="$INCDIRS" CXXFLAGS="$CXXFLAGS $local_cxxflags" \
- LDFLAGS="$LIBDIRS" $SWITCHES "$@"
+ CPPFLAGS="$CPPFLAGS" CXXFLAGS="$CXXFLAGS $local_cxxflags" \
+ LDFLAGS="$LDFLAGS" $SWITCHES "$@"