From b46fed7effbff7cda89c583d604f2c17943525aa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 29 Apr 2012 15:26:10 +0200 Subject: Add support for passing C++ compiler options to dist.sh --- dist.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/dist.sh b/dist.sh index cd46476..89fbedf 100755 --- a/dist.sh +++ b/dist.sh @@ -9,8 +9,10 @@ # -odb # -cc # -cxx +# -cxxflags # -ccp # -cxxp +# -cxxpflags # --options # --test-options # @@ -52,6 +54,7 @@ cxx=g++ ccp=gcc-4.5 cxxp=g++-4.5 cxxflags="-W -Wall -Wno-unknown-pragmas -O3" +cxxpflags="-W -Wall -O3" mysql_options= mysql_test_options= @@ -99,6 +102,11 @@ while [ $# -gt 0 ]; do cxx=$1 shift ;; + -cxxflags) + shift + cxxflags=$1 + shift + ;; -ccp) shift ccp=$1 @@ -109,6 +117,11 @@ while [ $# -gt 0 ]; do cxxp=$1 shift ;; + -cxxpflags) + shift + cxxpflags=$1 + shift + ;; -mysql-options) shift mysql_options=$1 @@ -214,7 +227,8 @@ mkdir -p $out_root/pack # if [ $complete = y ]; then cd $src_root/../cutl - ./dist.sh -cc "$ccp" -cxx "$cxxp" -out "$out_root/libcutl" + ./dist.sh -cc "$ccp" -cxx "$cxxp" -cxxflags "$cxxpflags" \ +-out "$out_root/libcutl" cd $wd fi @@ -228,7 +242,7 @@ dist dist_prefix=$out_root/odb ./bootstrap ./configure --with-libcutl=../libcutl CC="$ccp" CXX="$cxxp" \ -CXXFLAGS="$cxxflags" +CXXFLAGS="$cxxpflags" make -j 8 make dist -- cgit v1.1