summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xBuild/source/Build14
-rw-r--r--Build/source/ChangeLog5
2 files changed, 17 insertions, 2 deletions
diff --git a/Build/source/Build b/Build/source/Build
index 8c7c18f90ec..e0cf86c045f 100755
--- a/Build/source/Build
+++ b/Build/source/Build
@@ -48,7 +48,14 @@ fi
: ${TL_BUILD_ENV=}
if test "x$1" = x--debug || test "x$1" = x-g; then
shift
- TL_BUILD_ENV="CFLAGS='-g $TL_GCFLAGS' CXXFLAGS=-g OBJCFLAGS=-g $TL_BUILD_ENV"
+ # The idea is that with Build -g, you can set TL_COMPILER_GFLAGS in
+ # the environment with options common to all three compilers used.
+ # Not necessarily anything to do with debugging, e.g., -mcpu=sparvc9.
+ : ${TL_COMPILER_GFLAGS=-g}
+ c="CFLAGS='$TL_COMPILER_GFLAGS'"
+ cxx="CXXFLAGS='$TL_COMPILER_GFLAGS'"
+ objc="OBJCFLAGS='$TL_COMPILER_GFLAGS'"
+ TL_BUILD_ENV="$c $cxx $objc $TL_BUILD_ENV"
fi
test -d $TL_WORKDIR || mkdir $TL_WORKDIR
@@ -84,9 +91,12 @@ cd $TL_WORKDIR || exit 1
# configure && make. Keep the tee outside, so that we can detect
# failure at either step.
{
- echo starting `date` on `uname -a`
+ echo "starting `date`"
+ echo "on `uname -a`"
echo "$0 $*"
echo
+ env | sort >buildenv.txt
+ #
set -vx # show the configure and make commands in the log.
eval $TL_BUILD_ENV time $TL_CONFIGURE \
diff --git a/Build/source/ChangeLog b/Build/source/ChangeLog
index 8d3110754db..79b53c40aa0 100644
--- a/Build/source/ChangeLog
+++ b/Build/source/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-12 Karl Berry <karl@tug.org>
+
+ * Build (TL_COMPILER_GFLAGS): new envvar, used to override -g
+ for all three compilers, with Build -g.
+
2012-04-03 Peter Breitenlohner <peb@mppmu.mpg.de>
* tardate.ac: Switch to 2012-04-03.