build.sh 281 B

123456789101112131415
  1. #!/bin/bash
  2. set -ex
  3. CXXFLAGS_COMMON="-std=c++14 -DNDEBUG -mmacosx-version-min=10.9"
  4. cd github/protobuf
  5. ./autogen.sh
  6. mkdir build64 && cd build64
  7. export CXXFLAGS="$CXXFLAGS_COMMON -m64"
  8. ../configure --disable-shared
  9. make -j4
  10. file src/protoc
  11. otool -L src/protoc | grep dylib
  12. cd ..