iw6-mod/deps/protobuf/kokoro/release/protoc/macos/build.sh

16 lines
281 B
Bash
Raw Normal View History

2024-02-27 01:34:37 -05:00
#!/bin/bash
set -ex
CXXFLAGS_COMMON="-std=c++14 -DNDEBUG -mmacosx-version-min=10.9"
cd github/protobuf
./autogen.sh
mkdir build64 && cd build64
export CXXFLAGS="$CXXFLAGS_COMMON -m64"
../configure --disable-shared
make -j4
file src/protoc
otool -L src/protoc | grep dylib
cd ..