aboutsummaryrefslogtreecommitdiff
path: root/tests.sh
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2016-10-07 16:09:26 -0700
committerBo Yang <teboring@google.com>2016-10-10 11:44:54 -0700
commitdaba6653f1289b58873c2ae993afcdb82035d2fb (patch)
tree5879fa426bd0cf22df5a7ee39d25b8ece7c117f8 /tests.sh
parent5be6325c1f000f7b7d6655cb5b6ecbf4f0e52017 (diff)
downloadprotobuf-daba6653f1289b58873c2ae993afcdb82035d2fb.tar.gz
protobuf-daba6653f1289b58873c2ae993afcdb82035d2fb.tar.bz2
protobuf-daba6653f1289b58873c2ae993afcdb82035d2fb.zip
Fix python_cpp test on Mac. Link staticly when building extension, so that the extension doesn't require installing protobuf library. (#2232)
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index a497f1d2..fb7044f3 100755
--- a/tests.sh
+++ b/tests.sh
@@ -28,7 +28,8 @@ internal_build_cpp() {
fi
./autogen.sh
- ./configure
+ ./configure CXXFLAGS="-fPIC" # -fPIC is needed for python cpp test.
+ # See python/setup.py for more details
make -j2
}