Commit daba6653 authored by Paul Yang's avatar Paul Yang Committed by Bo Yang

Fix python_cpp test on Mac. Link staticly when building extension, so that the…

Fix python_cpp test on Mac. Link staticly when building extension, so that the extension doesn't require installing protobuf library. (#2232)
parent 5be6325c
...@@ -12,7 +12,7 @@ setenv = ...@@ -12,7 +12,7 @@ setenv =
commands = commands =
python setup.py -q build_py python setup.py -q build_py
python: python setup.py -q build python: python setup.py -q build
cpp: python setup.py -q build --cpp_implementation --warnings_as_errors cpp: python setup.py -q build --cpp_implementation --warnings_as_errors --compile_static_extension
python: python setup.py -q test -q python: python setup.py -q test -q
cpp: python setup.py -q test -q --cpp_implementation cpp: python setup.py -q test -q --cpp_implementation
python: python setup.py -q test_conformance python: python setup.py -q test_conformance
......
...@@ -28,7 +28,8 @@ internal_build_cpp() { ...@@ -28,7 +28,8 @@ internal_build_cpp() {
fi fi
./autogen.sh ./autogen.sh
./configure ./configure CXXFLAGS="-fPIC" # -fPIC is needed for python cpp test.
# See python/setup.py for more details
make -j2 make -j2
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment