summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-18 18:05:00 +0000
committerKarl Berry <karl@freefriends.org>2009-05-18 18:05:00 +0000
commit2724bec48977ef50bcbbfa1702c19307658ca671 (patch)
treebe88f5d51f8b8fb4b4ddb49e1ab71d5145fa5cb3
parentab2021df43d55ac856036ce0804d39249b4d3a00 (diff)
make Build -g -Wdecl do -Wdeclaration-after-statement
git-svn-id: svn://tug.org/texlive/trunk@13206 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xBuild/source/Build13
-rw-r--r--Build/source/ChangeLog8
2 files changed, 18 insertions, 3 deletions
diff --git a/Build/source/Build b/Build/source/Build
index 6674f10c586..937aafc43e3 100755
--- a/Build/source/Build
+++ b/Build/source/Build
@@ -1,8 +1,8 @@
#!/bin/sh
# $Id$
# Public domain. Originally written many years ago by Sebastian Rahtz.
-# To build again from same sources, try Build --no-clean.
-# To build (mostly) without optimization, try Build --debug.
+# To build again, try Build --no-clean.
+# To build without optimization, try Build --debug.
#
# Any other options given are passed along to configure, and everything can be
# overridden with environment variables.
@@ -51,8 +51,15 @@ fi
: ${TL_BUILD_ENV=}
if test "x$1" = x--debug || test "x$1" = x-g; then
- TL_BUILD_ENV="CFLAGS=-g CXXFLAGS=-g OBJCFLAGS=-g $TL_BUILD_ENV"
shift
+ if test "x$1" = x-Wdecl || test "x$1" = x-Wdeclaration-after-statement; then
+ wdecl=-Wdeclaration-after-statement
+ shift
+ else
+ wdecl=
+ fi
+ TL_GFLAGS="wdecl $TL_GCFLAGS"
+ TL_BUILD_ENV="CFLAGS='-g $TL_GCFLAGS' CXXFLAGS=-g OBJCFLAGS=-g $TL_BUILD_ENV"
fi
test -d $TL_WORKDIR || mkdir $TL_WORKDIR
diff --git a/Build/source/ChangeLog b/Build/source/ChangeLog
index 997a11c3f2e..11b6ba43522 100644
--- a/Build/source/ChangeLog
+++ b/Build/source/ChangeLog
@@ -1,3 +1,11 @@
+2009-05-18 Karl Berry <karl@tug.org>
+
+ * Build (-Wdecl): allow with -g, to do -Wdeclaration-after-statement.
+
+2009-05-16 Karl Berry <karl@tug.org>
+
+ * Build (TL_CONF_XINDY): default to disabling latex-requiring stuff.
+
2009-04-29 Karl Berry <karl@tug.org>
* Build (MACOSX_DEPLOYMENT_TARGET): set to 10.3 on powerpc-darwin