Lines Matching +full:- +full:- +full:disable +full:- +full:shared
4 set -evux -o pipefail
9 ARCH="${ARCH:-x86_64}"
11 INSTALL_DIR="/tmp/protobuf-cache/$PROTOBUF_VERSION/$(uname -s)-$ARCH"
12 mkdir -p $DOWNLOAD_DIR
20 NUM_CPU=$(sysctl -n hw.ncpu)
24 # Can't check for presence of directory as cache auto-creates it.
25 if [ -f ${INSTALL_DIR}/bin/protoc ]; then
27 # TODO(ejona): swap to `brew install --devel protobuf` once it is up-to-date
29 if [[ ! -d "$DOWNLOAD_DIR"/protobuf-"${PROTOBUF_VERSION}" ]]; then
30 …curl -Ls https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protobuf-all-${…
32 pushd $DOWNLOAD_DIR/protobuf-${PROTOBUF_VERSION}
35 ./configure CFLAGS=-m${ARCH#*_} CXXFLAGS=-m${ARCH#*_} --disable-shared \
36 --prefix="$INSTALL_DIR"
38 ./configure --disable-shared --host=aarch64-linux-gnu --prefix="$INSTALL_DIR"
40 ./configure --disable-shared --host=powerpc64le-linux-gnu --prefix="$INSTALL_DIR"
42 ./configure --disable-shared --host=s390x-linux-gnu --prefix="$INSTALL_DIR"
44 ./configure --disable-shared --host=loongarch64-unknown-linux-gnu --prefix="$INSTALL_DIR"
48 make V=0 -j$NUM_CPU
55 if [[ -L /tmp/protobuf ]]; then
58 ln -s "$INSTALL_DIR" /tmp/protobuf
63 export LDFLAGS=-L/tmp/protobuf/lib
64 export CXXFLAGS=-I/tmp/protobuf/include