diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/setenv-unibuild.sh | 20 | 
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/setenv-unibuild.sh b/scripts/setenv-unibuild.sh index d5ccb75..cfcf23d 100644 --- a/scripts/setenv-unibuild.sh +++ b/scripts/setenv-unibuild.sh @@ -43,9 +43,15 @@ setenv_common()  setenv_freebsd()  { + echo .... freebsd detected.  + echo .... if you have freebsd >9, it is advisable to install + echo .... the clang compiler and re-run this script as  + echo .... '. ./scripts/setenv-unibuild.sh clang'   setenv_common   QMAKESPEC=freebsd-g++   QTDIR=/usr/local/share/qt4 + export QMAKESPEC + export QTDIR  }  setenv_netbsd() @@ -78,6 +84,17 @@ setenv_linux_clang()   echo QMAKESPEC has been modified: $QMAKESPEC  } +setenv_freebsd_clang() +{ + export CC=clang + export CXX=clang++ + export QMAKESPEC=freebsd-clang + + echo CC has been modified: $CC + echo CXX has been modified: $CXX + echo QMAKESPEC has been modified: $QMAKESPEC +} +  setenv_netbsd_clang()  {   echo --------------------- this is not yet supported. netbsd 6 lacks @@ -141,6 +158,9 @@ if [ "`uname | grep -i 'linux\|debian'`" ]; then   fi  elif [ "`uname | grep -i freebsd`" ]; then   setenv_freebsd + if [ "`echo $* | grep clang`" ]; then +  setenv_freebsd_clang + fi  elif [ "`uname | grep -i netbsd`" ]; then   setenv_netbsd   if [ "`echo $* | grep clang`" ]; then  | 
