Set GCC -fPIC before running CMake on Travis

This commit is contained in:
Oliver Hamlet
2016-07-25 22:21:14 +01:00
parent 34e3ea3d75
commit 14d73450b0
+1 -1
View File
@@ -29,6 +29,7 @@ cache:
install:
# Use GCC 5.
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- export CXXFLAGS="-fPIC" CFLAGS="-fPIC"
# Install the latest stable Node.js. The default Node.js version is too old
# for some of the JavaScript syntax used.
- npm install -g nvm
@@ -50,7 +51,6 @@ before_script:
script:
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm test; fi
- export CXXFLAGS="-fPIC" CFLAGS="-fPIC"
- make tests && ./tests
- make api-tests && ./api-tests