From ed58957b9ff61004d4e00719504480147e629a8f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 28 Nov 2015 10:11:09 +0200 Subject: Update INSTALL, bootstrap with revised steps --- bootstrap | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'bootstrap') 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 ]" 1>&2 + echo "Usage: $0 [--help] [--cxx ] [--cxxflags ]" 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 -- cgit v1.1