diff options
author | Kun Zhang <zhangkun@google.com> | 2015-04-08 00:14:36 -0700 |
---|---|---|
committer | Kun Zhang <zhangkun@google.com> | 2015-04-08 00:14:36 -0700 |
commit | 62903ec0753c59728145bc8959db3c2b028f8eee (patch) | |
tree | f72645de811d7dbd6786e4732dffdb7db268cf42 /protoc-artifacts | |
parent | 5c265faedbd93d867871c8739ae46e8f7f347434 (diff) | |
download | protobuf-62903ec0753c59728145bc8959db3c2b028f8eee.tar.gz protobuf-62903ec0753c59728145bc8959db3c2b028f8eee.tar.bz2 protobuf-62903ec0753c59728145bc8959db3c2b028f8eee.zip |
Make the osx binary compatible with 10.7 and later
Diffstat (limited to 'protoc-artifacts')
-rwxr-xr-x | protoc-artifacts/build-protoc.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protoc-artifacts/build-protoc.sh b/protoc-artifacts/build-protoc.sh index 4027f11e..10c13074 100755 --- a/protoc-artifacts/build-protoc.sh +++ b/protoc-artifacts/build-protoc.sh @@ -106,7 +106,7 @@ checkDependencies () fi elif [[ "$OS" == osx ]]; then dump_cmd='otool -L '"$1"' | fgrep dylib' - white_list="libz\.1\.dylib\|libc++\.1\.dylib\|libSystem\.B\.dylib" + white_list="libz\.1\.dylib\|libstdc++\.6\.dylib\|libSystem\.B\.dylib" fi if [[ -z "$white_list" || -z "$dump_cmd" ]]; then fail "Unsupported platform $OS-$ARCH." @@ -184,6 +184,8 @@ elif [[ "$(uname)" == Linux* ]]; then fi elif [[ "$(uname)" == Darwin* ]]; then assertEq "$OS" osx $LINENO + # Make the binary compatible with OSX 10.7 and later + CXXFLAGS="$CXXFLAGS -mmacosx-version-min=10.7" if [[ "$ARCH" == x86_64 ]]; then CXXFLAGS="$CXXFLAGS -m64" elif [[ "$ARCH" == x86_32 ]]; then |