Support BUILDVARS from cmd line in configure.llvm

Change-Id: I59527c60cb34c12fd2bed449b37bb812a83c4e42
This commit is contained in:
Lionel Sambuc 2015-01-28 15:04:27 +01:00 committed by David van Moolenbroek
parent 035cdb2e79
commit 3ceafe99fd
2 changed files with 8 additions and 1 deletions

View file

@ -105,15 +105,18 @@ fi
########################
# Build Minix
########################
export BUILDVARS=$(echo "${BUILDVARS} -V MKBITCODE=yes"| sed -e 's,-V MKMAGIC=yes,-V DBG=-g -V STRIPFLAG=-s -V CPPFLAGS=-D_MINIX_MAGIC=1,')
if [ "${REBUILD_MINIX}" == "yes" ]; then
echo "Building Minix..."
echo "CC:$CC"
echo "CXX:$CXX"
echo "JOBS:$JOBS"
echo "BUILDVARS:$BUILDVARS"
echo
cd ${MINIX_ROOT}
BUILDVARS="-V MKBITCODE=yes" ./releasetools/x86_hdimage.sh || EXITCODE=1
./releasetools/x86_hdimage.sh || EXITCODE=1
cd ${MYPWD}
if [ "$EXITCODE" != "0" ]; then
echo "Error: Failed building Minix source code."

View file

@ -61,7 +61,11 @@ DBG?= -O1 -fgcse -fstrength-reduce -fgcse-after-reload
.else
DBG?= -O2
.endif
.if !defined(__MINIX)
CFLAGS?= ${DBG}
.else
CFLAGS+= ${DBG}
.endif # !defined(__MINIX)
LDFLAGS?=
COMPILE.c?= ${CC} ${CFLAGS} ${CPPFLAGS} -c
LINK.c?= ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}