CMake: Check whether BSYMBOLIC is supported by the linker.

Linking with '-Bsymbolic-functions' is supported for ELF-binaries, only.
This commit is contained in:
Björn Esser
2020-04-10 14:42:03 +02:00
parent 58670ec64e
commit e756777c92
2 changed files with 15 additions and 6 deletions

View File

@@ -128,11 +128,7 @@ before_script:
- set +e
- mkdir -p build || echo "Failed to mkdir build"
- cd build || echo "Failed to cd build"
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
cmake -DDISABLE_BSYMBOLIC=ON .. ;
else
cmake .. ;
fi || echo "Failed to run cmake"
- cmake .. || echo "Failed to run cmake"
script:
- make