diff options
Diffstat (limited to 'contrib/build-scripts/build-v8-mac.sh')
-rwxr-xr-x | contrib/build-scripts/build-v8-mac.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/build-scripts/build-v8-mac.sh b/contrib/build-scripts/build-v8-mac.sh index 4d5aa62..e979c4d 100755 --- a/contrib/build-scripts/build-v8-mac.sh +++ b/contrib/build-scripts/build-v8-mac.sh @@ -37,6 +37,14 @@ fi DEPOT_PATH="${PWD}/../depot_tools" export PATH="${DEPOT_PATH}:${PATH}" +if [ ${MACOSX_COMP[1]} -lt 9 ]; then + CXXFLAGS="-mmacosx-version-min=10.6 -stdlib=libstdc++" + LDFLAGS="-stdlib=libstdc++" +else + CXXFLAGS="-mmacosx-version-min=10.7 -stdlib=libc++" + LDFLAGS="-stdlib=libc++" +fi + make dependencies make ia32.release |