aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-28 10:11:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-28 10:11:09 +0200
commited58957b9ff61004d4e00719504480147e629a8f (patch)
treeefe2d0154d46841cc20a1a74de9afbee7a7eaa77 /bootstrap
parent7123f122b96f81a435241e16b372df5dfa52dba3 (diff)
Update INSTALL, bootstrap with revised steps
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap16
1 files changed, 13 insertions, 3 deletions
diff --git a/bootstrap b/bootstrap
index 787d120..dfb6f7f 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,12 +1,13 @@
#!/bin/sh
cxx=g++
+cxxflags=
libbutl=
while test $# -ne 0; do
case $1 in
--help)
- echo "Usage: $0 [--help] [--cxx <c++-compiler>]" 1>&2
+ echo "Usage: $0 [--help] [--cxx <compiler>] [--cxxflags <flags>]" 1>&2
echo "See the INSTALL file for details." 1>&2
exit 0
;;
@@ -19,6 +20,15 @@ while test $# -ne 0; do
cxx=$1
shift
;;
+ --cxxflags)
+ shift
+ if test $# -eq 0; then
+ echo "error: c++ compiler flags expected after --cxxflags" 1>&2
+ exit 1
+ fi
+ cxx=$1
+ shift
+ ;;
--libbutl)
shift
if test $# -eq 0; then
@@ -79,5 +89,5 @@ src="$src build/test/*.cxx"
src="$src build/install/*.cxx"
src="$src $libbutl/butl/*.cxx"
-echo $cxx -std=c++1y -I$libbutl -I. -o build/b-boot $src 1>&2
-exec $cxx -std=c++1y -I$libbutl -I. -o build/b-boot $src
+echo $cxx -std=c++1y $cxxflags -I$libbutl -I. -o build/b-boot $src 1>&2
+exec $cxx -std=c++1y $cxxflags -I$libbutl -I. -o build/b-boot $src