summaryrefslogtreecommitdiff
path: root/Build/source/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-04-11 22:56:52 +0000
committerKarl Berry <karl@freefriends.org>2012-04-11 22:56:52 +0000
commit97a03107361bd05d4181856f6b5424f4b71a23e7 (patch)
treea04ac33d38e9e7358dfe5c49ec095c7ff7a7add7 /Build/source/Build
parent26834897e7540476f2fda155685e7338a95a746c (diff)
new TL_COMPILER_GFLAGS envvar for customization
git-svn-id: svn://tug.org/texlive/trunk@25921 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/Build')
-rwxr-xr-xBuild/source/Build14
1 files changed, 12 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 \