aboutsummaryrefslogtreecommitdiffhomepage
path: root/python/release
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2017-08-16 12:57:12 -0700
committerGravatar Jisi Liu <jisi.liu@gmail.com>2017-08-16 13:34:14 -0700
commit98c6d04df4325dcf7c3c83b25879df9fc8c9b9d3 (patch)
tree6387a6e7b3413df7f63980cbb68e9ee4cea427f3 /python/release
parente243082fe9623ed36597b18a991a1d1a903d345c (diff)
Prefer system distributed binaries/libraries.
It seems like the image has a /usr/local/bin/autoconf installed, which doesn't recognize/work with the yum installed libtools. Putting distributed binaries/libraries first solves the problem
Diffstat (limited to 'python/release')
-rwxr-xr-xpython/release/wheel/protobuf_optimized_pip.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/release/wheel/protobuf_optimized_pip.sh b/python/release/wheel/protobuf_optimized_pip.sh
index 469661aa..064d1d2a 100755
--- a/python/release/wheel/protobuf_optimized_pip.sh
+++ b/python/release/wheel/protobuf_optimized_pip.sh
@@ -47,6 +47,9 @@ cd $DIR/protobuf-${PROTOBUF_VERSION}
sed -i '/AC_PROG_OBJC/d' configure.ac
sed -i 's/conformance\/Makefile//g' configure.ac
+# Use the /usr/bin/autoconf and related tools to pick the correct aclocal macros
+export PATH="/usr/bin:$PATH"
+
# Build protoc
./autogen.sh
CXXFLAGS="-fPIC -g -O2" ./configure