diff options
| author | Marius Kintel <marius@kintel.net> | 2013-01-30 15:50:07 (GMT) | 
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2013-01-30 15:50:07 (GMT) | 
| commit | c7cc3ab03184a1759315d4aeea292092f2069d3b (patch) | |
| tree | 6339dc8b8829c1fe4875c752fb57deb44bebafe1 /scripts | |
| parent | 600893dd74ba241eb65722e929d847dc5b0c282f (diff) | |
| parent | 5b14c57962a06fe5da08524aada8f7aca6cfd187 (diff) | |
Merge pull request #263 from openscad/boost_backport_random
Boost backport random
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/check-dependencies.sh | 2 | ||||
| -rwxr-xr-x | scripts/uni-build-dependencies.sh | 20 | 
2 files changed, 17 insertions, 5 deletions
diff --git a/scripts/check-dependencies.sh b/scripts/check-dependencies.sh index eaed556..6a3e637 100755 --- a/scripts/check-dependencies.sh +++ b/scripts/check-dependencies.sh @@ -449,7 +449,7 @@ check_old_local()    warnon=    if [ "`uname | grep -i linux`" ]; then      header_list="opencsg.h CGAL boost GL/glew.h gmp.h mpfr.h eigen2 eigen3" -    liblist="libboost libopencsg libCGAL libglew" +    liblist="libboost_system libboost_system-mt libopencsg libCGAL libglew"      for i in $header_list $liblist; do        if [ -e /usr/local/include/$i ]; then          echo "Warning: you have a copy of "$i" under /usr/local/include" diff --git a/scripts/uni-build-dependencies.sh b/scripts/uni-build-dependencies.sh index 0c37605..a9e5cc8 100755 --- a/scripts/uni-build-dependencies.sh +++ b/scripts/uni-build-dependencies.sh @@ -176,15 +176,27 @@ build_boost()      fi    fi    # We only need certain portions of boost -  ./bootstrap.sh --prefix=$DEPLOYDIR --with-libraries=thread,program_options,filesystem,system,regex +  if [ -e ./bootstrap.sh ]; then +    BSTRAPBIN=./bootstrap.sh +  else +    BSTRAPBIN=./configure +  fi +  $BSTRAPBIN --prefix=$DEPLOYDIR --with-libraries=thread,program_options,filesystem,system,regex +	if [ -e ./b2 ]; then +    BJAMBIN=b2; +  elif [ -e ./bjam ]; then +    BJAMBIN=./bjam +  elif [ -e ./Makefile ]; then +    BJAMBIN=make +  fi    if [ $CXX ]; then      if [ $CXX = "clang++" ]; then -      ./b2 -j$NUMCPU toolset=clang install +      $BJAMBIN -j$NUMCPU toolset=clang install        # ./b2 -j$NUMCPU toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++" install      fi    else -    ./b2 -j$NUMCPU -    ./b2 install +    $BJAMBIN -j$NUMCPU +    $BJAMBIN install    fi  }  | 
