• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3set -ex
4CXXFLAGS_COMMON="-std=c++14 -DNDEBUG -mmacosx-version-min=10.9"
5
6cd github/protobuf
7./autogen.sh
8
9mkdir build32 && cd build32
10export CXXFLAGS="$CXXFLAGS_COMMON -m32"
11../configure --disable-shared
12make -j4
13file src/protoc
14otool -L src/protoc | grep dylib
15cd ..
16
17mkdir build64 && cd build64
18export CXXFLAGS="$CXXFLAGS_COMMON -m64"
19../configure --disable-shared
20make -j4
21file src/protoc
22otool -L src/protoc | grep dylib
23cd ..
24