summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-14 00:08:51 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-14 00:08:51 -0400
commit4658034a487110e0c735bf36a20ad33d69168075 (patch)
treea6e9466424d4915a42971ce44275da1ae5dfa57e /acprep
parent0b6a10925db8eeef9ab9dc2e183a4f872a0692bd (diff)
downloadfork-ledger-4658034a487110e0c735bf36a20ad33d69168075.tar.gz
fork-ledger-4658034a487110e0c735bf36a20ad33d69168075.tar.bz2
fork-ledger-4658034a487110e0c735bf36a20ad33d69168075.zip
Don't build with all warning flags on unless './acprep --devel' is use. Some
older version of g++ don't like all the warnings flags.
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep50
1 files changed, 25 insertions, 25 deletions
diff --git a/acprep b/acprep
index 0ad7bd07..bf454c40 100755
--- a/acprep
+++ b/acprep
@@ -65,29 +65,6 @@ CXXFLAGS="$CXXFLAGS -pipe"
LDFLAGS="$LDFLAGS $LIBDIRS"
BUILD_DIR=false
-# Warning flags
-CXXFLAGS="$CXXFLAGS -Wall -ansi -Winvalid-pch"
-CXXFLAGS="$CXXFLAGS -Wextra"
-CXXFLAGS="$CXXFLAGS -Wcast-align"
-CXXFLAGS="$CXXFLAGS -Wcast-qual"
-#CXXFLAGS="$CXXFLAGS -Wconversion"
-CXXFLAGS="$CXXFLAGS -Wfloat-equal"
-CXXFLAGS="$CXXFLAGS -Wmissing-field-initializers"
-CXXFLAGS="$CXXFLAGS -Wno-endif-labels"
-#CXXFLAGS="$CXXFLAGS -Wold-style-cast"
-CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
-#CXXFLAGS="$CXXFLAGS -Wshorten-64-to-32"
-CXXFLAGS="$CXXFLAGS -Wsign-compare"
-CXXFLAGS="$CXXFLAGS -Wsign-promo"
-CXXFLAGS="$CXXFLAGS -Wstrict-null-sentinel"
-CXXFLAGS="$CXXFLAGS -Wwrite-strings"
-
-#CXXFLAGS="$CXXFLAGS -Weffc++"
-CXXFLAGS="$CXXFLAGS -Wno-unused"
-CXXFLAGS="$CXXFLAGS -Wno-shorten-64-to-32"
-CXXFLAGS="$CXXFLAGS -Wno-old-style-cast"
-CXXFLAGS="$CXXFLAGS -Wno-deprecated"
-
# The following are options to prepare a developer tree of Ledger for
# building:
#
@@ -203,6 +180,29 @@ while [ -n "$1" ]; do
CXXFLAGS="$CXXFLAGS -g"
LDFLAGS="$LDFLAGS -g"
+ # Warning flags
+ CXXFLAGS="$CXXFLAGS -Wall -ansi -Winvalid-pch"
+ CXXFLAGS="$CXXFLAGS -Wextra"
+ CXXFLAGS="$CXXFLAGS -Wcast-align"
+ CXXFLAGS="$CXXFLAGS -Wcast-qual"
+ #CXXFLAGS="$CXXFLAGS -Wconversion"
+ CXXFLAGS="$CXXFLAGS -Wfloat-equal"
+ CXXFLAGS="$CXXFLAGS -Wmissing-field-initializers"
+ CXXFLAGS="$CXXFLAGS -Wno-endif-labels"
+ #CXXFLAGS="$CXXFLAGS -Wold-style-cast"
+ CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
+ #CXXFLAGS="$CXXFLAGS -Wshorten-64-to-32"
+ CXXFLAGS="$CXXFLAGS -Wsign-compare"
+ CXXFLAGS="$CXXFLAGS -Wsign-promo"
+ CXXFLAGS="$CXXFLAGS -Wstrict-null-sentinel"
+ CXXFLAGS="$CXXFLAGS -Wwrite-strings"
+
+ #CXXFLAGS="$CXXFLAGS -Weffc++"
+ CXXFLAGS="$CXXFLAGS -Wno-unused"
+ CXXFLAGS="$CXXFLAGS -Wno-shorten-64-to-32"
+ CXXFLAGS="$CXXFLAGS -Wno-old-style-cast"
+ CXXFLAGS="$CXXFLAGS -Wno-deprecated"
+
#LDFLAGS="-Wl,-read_only_relocs,suppress"
#LIBS=""
#if [ -f /opt/local/lib/libexpat.a ]; then
@@ -261,8 +261,8 @@ while [ -n "$1" ]; do
--release)
SWITCHES="$SWITCHES --disable-dependency-tracking"
CPPFLAGS="-isystem /usr/local/stow/cppunit/include $CPPFLAGS"
- CXXFLAGS="$CXXFLAGS $ARCHFLAGS"
- LDFLAGS="$LDFLAGS $LDARCHFLAGS"
+ #CXXFLAGS="$CXXFLAGS $ARCHFLAGS"
+ #LDFLAGS="$LDFLAGS $LDARCHFLAGS"
LDFLAGS="-L/usr/local/stow/cppunit/lib $LDFLAGS"
shift 1 ;;