summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCiprian Dorin, Craciun <ciprian@volution.ro>2011-08-31 11:28:47 (GMT)
committerCiprian Dorin, Craciun <ciprian@volution.ro>2011-11-22 00:51:47 (GMT)
commite1636b1ebe2170a927a420db50fa0502a6c2b270 (patch)
tree19e4088bc572f3cf93d2729bb9c52a1689619a04
parent2198fd8ce483c0d70bcd692954748768a362a227 (diff)
downloadNinja-e1636b1ebe2170a927a420db50fa0502a6c2b270.zip
Ninja-e1636b1ebe2170a927a420db50fa0502a6c2b270.tar.gz
Ninja-e1636b1ebe2170a927a420db50fa0502a6c2b270.tar.bz2
Added support for custom CFLAGS and LDFLAGS.
-rwxr-xr-xbootstrap.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 25b9c85..af9cd08 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -21,11 +21,11 @@ SYSTEMNAME=`uname -s`
# Compute system-specific CFLAGS/LDFLAGS as used in both in the below
# g++ call as well as in the later configure.py.
if [ "${SYSTEMNAME}" = "Linux" ]; then
- export CFLAGS=
- export LDFLAGS=
+ export CFLAGS="${CFLAGS}"
+ export LDFLAGS="${LDFLAGS}"
elif [ "${SYSTEMNAME}" = "FreeBSD" ]; then
- export CFLAGS="-I/usr/local/include"
- export LDFLAGS="-L/usr/local/lib"
+ export CFLAGS="${CFLAGS} -I/usr/local/include"
+ export LDFLAGS="${LDFLAGS} -L/usr/local/lib"
fi
echo "Building ninja manually..."