summaryrefslogtreecommitdiff
path: root/src/third_party/protobuf/scripts/host_config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/protobuf/scripts/host_config.sh')
-rwxr-xr-xsrc/third_party/protobuf/scripts/host_config.sh46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/third_party/protobuf/scripts/host_config.sh b/src/third_party/protobuf/scripts/host_config.sh
deleted file mode 100755
index e19510d1bf9..00000000000
--- a/src/third_party/protobuf/scripts/host_config.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/bash
-# Configures a protobuf suitable for use in the mongo server, built on the host machine.
-
-set -euo pipefail
-IFS=$'\n\t'
-
-set -vx
-
-TOOLCHAIN_ROOT=/opt/mongodbtoolchain/v3
-PATH="$TOOLCHAIN_ROOT/bin:$PATH"
-
-DEST_DIR=$(git rev-parse --show-toplevel)/src/third_party/protobuf
-
-HOST_OS="$(uname -s|tr A-Z a-z)"
-HOST_ARCH="$(uname -m)"
-HOST_DIR="$DEST_DIR/platform/${HOST_OS}_${HOST_ARCH}"
-
-
-SRC_DIR=${DEST_DIR}/dist
-pushd $SRC_DIR
-autoreconf -fi
-popd
-
-mkdir -p $HOST_DIR/build
-pushd $HOST_DIR/build
-
-# force disable:
-# coredump : postmortem analysis of core memory dumps
-# ptrace : unwinding stacks in another process
-# setjmp : provides a nonlocal goto feature
-# documentation : won't need them
-# tests : won't need them
-# dependency-tracking : (from automake) disabled because we only do one build
-# cxx-exceptions : intrusive exception handling runtime
-$SRC_DIR/configure \
- --prefix=$HOST_DIR/install \
- CC=$TOOLCHAIN_ROOT/bin/gcc \
- CXX=$TOOLCHAIN_ROOT/bin/g++
-
-
-CC=$TOOLCHAIN_ROOT/bin/gcc
-CXX=$TOOLCHAIN_ROOT/bin/g++
-pushd src
-make CC=$CC CXX=$CXX -j16 protoc V=1
-popd
-popd