From 97a03107361bd05d4181856f6b5424f4b71a23e7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 11 Apr 2012 22:56:52 +0000 Subject: new TL_COMPILER_GFLAGS envvar for customization git-svn-id: svn://tug.org/texlive/trunk@25921 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/Build | 14 ++++++++++++-- Build/source/ChangeLog | 5 +++++ 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 + + * Build (TL_COMPILER_GFLAGS): new envvar, used to override -g + for all three compilers, with Build -g. + 2012-04-03 Peter Breitenlohner * tardate.ac: Switch to 2012-04-03. -- cgit v1.2.3