summaryrefslogtreecommitdiffstats
path: root/contrib/build-scripts/build-glog-macosx.sh
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-10-28 20:06:55 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-10-28 20:06:55 (GMT)
commite2a9a6f822372e09162ba6793f11fdf40e83cd90 (patch)
tree16b616138d8a951a781cad464f46b07bd29561c0 /contrib/build-scripts/build-glog-macosx.sh
parenta68b6c1d31cb94675dd4dda0a2da11d8e83063c3 (diff)
downloaduscxml-e2a9a6f822372e09162ba6793f11fdf40e83cd90.zip
uscxml-e2a9a6f822372e09162ba6793f11fdf40e83cd90.tar.gz
uscxml-e2a9a6f822372e09162ba6793f11fdf40e83cd90.tar.bz2
New prebuilt build scripts for mavericks
Diffstat (limited to 'contrib/build-scripts/build-glog-macosx.sh')
-rwxr-xr-xcontrib/build-scripts/build-glog-macosx.sh32
1 files changed, 19 insertions, 13 deletions
diff --git a/contrib/build-scripts/build-glog-macosx.sh b/contrib/build-scripts/build-glog-macosx.sh
index 81437d9..3363883 100755
--- a/contrib/build-scripts/build-glog-macosx.sh
+++ b/contrib/build-scripts/build-glog-macosx.sh
@@ -9,7 +9,9 @@ set -e
ME=`basename $0`
DIR="$( cd "$( dirname "$0" )" && pwd )"
-DEST_DIR="${DIR}/../prebuilt/darwin-i386/gnu"
+MACOSX_VER=`/usr/bin/sw_vers -productVersion`
+MACOSX_COMP=(`echo $MACOSX_VER | tr '.' ' '`)
+DEST_DIR="${DIR}/../prebuilt/darwin-i386/${MACOSX_COMP[0]}.${MACOSX_COMP[1]}/gnu"
if [ ! -f src/glog/log_severity.h ]; then
echo
@@ -23,10 +25,14 @@ if [ -f Makefile ]; then
make clean
fi
+if [ ${MACOSX_COMP[1]} -lt 9 ]; then
+ MACOSX_VERSION_MIN="-mmacosx-version-min=10.6"
+fi
+
./configure \
-CFLAGS="-g -mmacosx-version-min=10.6 -arch x86_64" \
-CXXFLAGS="-g -mmacosx-version-min=10.6 -arch x86_64" \
-LDFLAGS="-g -mmacosx-version-min=10.6 -arch x86_64" \
+CFLAGS="-g ${MACOSX_VERSION_MIN} -arch x86_64" \
+CXXFLAGS="-g ${MACOSX_VERSION_MIN} -arch x86_64" \
+LDFLAGS="-g ${MACOSX_VERSION_MIN} -arch x86_64" \
--disable-rtti \
--enable-static \
--with-pic \
@@ -40,9 +46,9 @@ make clean
./configure \
-CFLAGS="-mmacosx-version-min=10.6 -arch x86_64" \
-CXXFLAGS="-mmacosx-version-min=10.6 -arch x86_64" \
-LDFLAGS="-mmacosx-version-min=10.6 -arch x86_64" \
+CFLAGS="${MACOSX_VERSION_MIN} -arch x86_64" \
+CXXFLAGS="${MACOSX_VERSION_MIN} -arch x86_64" \
+LDFLAGS="${MACOSX_VERSION_MIN} -arch x86_64" \
--disable-rtti \
--enable-static \
--with-pic
@@ -53,9 +59,9 @@ make clean
./configure \
-CFLAGS="-g -mmacosx-version-min=10.6 -arch i386" \
-CXXFLAGS="-g -mmacosx-version-min=10.6 -arch i386" \
-LDFLAGS="-g -mmacosx-version-min=10.6 -arch i386" \
+CFLAGS="-g ${MACOSX_VERSION_MIN} -arch i386" \
+CXXFLAGS="-g ${MACOSX_VERSION_MIN} -arch i386" \
+LDFLAGS="-g ${MACOSX_VERSION_MIN} -arch i386" \
--disable-rtti \
--enable-static \
--with-pic
@@ -66,9 +72,9 @@ make clean
./configure \
-CFLAGS="-mmacosx-version-min=10.6 -arch i386" \
-CXXFLAGS="-mmacosx-version-min=10.6 -arch i386" \
-LDFLAGS="-mmacosx-version-min=10.6 -arch i386" \
+CFLAGS="${MACOSX_VERSION_MIN} -arch i386" \
+CXXFLAGS="${MACOSX_VERSION_MIN} -arch i386" \
+LDFLAGS="${MACOSX_VERSION_MIN} -arch i386" \
--disable-rtti \
--enable-static \
--with-pic