Skip to content

Commit

Permalink
Revert "add cross building support for protobuf"
Browse files Browse the repository at this point in the history
This reverts commit 08289fc.
  • Loading branch information
okapies committed Oct 5, 2018
1 parent c1573ed commit 38f65a8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 174 deletions.
120 changes: 0 additions & 120 deletions scripts/build-boost.sh

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/build-menoh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ test -n "${ARG_BUILD_DIR}" || readonly ARG_BUILD_DIR="${ARG_SOURCE_DIR}/build"
test -n "${ARG_INSTALL_DIR}" || readonly ARG_INSTALL_DIR=/usr/local

if [ -n "${ARG_MKLDNN_DIR}" ]; then
readonly OPT_MKLDNN_INCLUDE_DIR=-DMKLDNN_INCLUDE_DIR=${ARG_MKLDNN_DIR}/include
readonly OPT_MKLDNN_LIBRARY=-DMKLDNN_LIBRARY=${ARG_MKLDNN_DIR}/lib/libmkldnn.so
OPT_MKLDNN_INCLUDE_DIR=-DMKLDNN_INCLUDE_DIR=${ARG_MKLDNN_DIR}/include
OPT_MKLDNN_LIBRARY=-DMKLDNN_LIBRARY=${ARG_MKLDNN_DIR}/lib/libmkldnn.so
fi

test -n "${ARG_PYTHON_EXECUTABLE}" || readonly ARG_PYTHON_EXECUTABLE=python
Expand Down
18 changes: 1 addition & 17 deletions scripts/build-protobuf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ while [[ $# != 0 ]]; do
readonly ARG_INSTALL_DIR="$2"
shift 2
;;
--host)
readonly ARG_HOST="$2"
shift 2
;;
--with-protoc)
readonly ARG_WITH_PROTOC="$2"
shift 2
;;
--parallel)
readonly ARG_PARALLEL="$2"
shift 2
Expand Down Expand Up @@ -63,14 +55,6 @@ test -n "${ARG_BUILD_DIR}" || readonly ARG_BUILD_DIR="${SOURCE_DIR}"
test -n "${ARG_INSTALL_DIR}" || readonly ARG_INSTALL_DIR=/usr/local
test -n "${ARG_PARALLEL}" || readonly ARG_PARALLEL=1

# options for cross compiling
if [ -n "${ARG_HOST}" ]; then
readonly OPT_HOST=--host=${ARG_HOST}
fi
if [ -n "${ARG_WITH_PROTOC}" ]; then
readonly OPT_WITH_PROTOC=--with-protoc=${ARG_WITH_PROTOC}
fi

# download (if it isn't cached)
if [ ! -e "${SOURCE_DIR}/LICENSE" ]; then
echo -e "\e[33;1mDownloading libprotobuf\e[0m"
Expand All @@ -96,7 +80,7 @@ if [ ! -e "${ARG_BUILD_DIR}/src/libprotobuf.la" ]; then
[ -d "${ARG_BUILD_DIR}" ] || mkdir -p "${ARG_BUILD_DIR}"

cd "${ARG_BUILD_DIR}"
"${SOURCE_DIR}/configure" --prefix="${ARG_INSTALL_DIR}" CFLAGS="-g -O2 -fPIC" CXXFLAGS="-g -O2 -fPIC" "${OPT_HOST}" "${OPT_WITH_PROTOC}"
"${SOURCE_DIR}/configure" --prefix="${ARG_INSTALL_DIR}" CFLAGS="-g -O2 -fPIC" CXXFLAGS="-g -O2 -fPIC"
make -j${ARG_PARALLEL}

echo -e "\e[32;1mlibprotobuf was successfully built.\e[0m"
Expand Down
35 changes: 0 additions & 35 deletions scripts/install-boost.sh

This file was deleted.

0 comments on commit 38f65a8

Please sign in to comment.