diff options
author | Peter Wu <peter@lekensteyn.nl> | 2018-10-30 14:31:39 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2018-10-30 14:33:29 +0000 |
commit | 9f472ea1501f8deb0109ea61feda6b8a5eec4f6a (patch) | |
tree | e19e2a587c62f3d9f7b7b3befd5e2da19fd4e119 /CMakeLists.txt | |
parent | 81c4f74a1921e8c89fcf200beb6892b78a7297d9 (diff) |
CMake: fix broken oss-fuzz build due to the -pie option
check_function_exists (as used by FindZLIB.cmake) seems to fail with the
-pie option as well, do not try to enable it when building for oss-fuzz.
Change-Id: I7d7e0fce1972483a14ac0a91a9f144f22c5ae8a0
Fixes: v2.9.0rc0-2349-g895ad30b5a ("CMake: Fix -pie linker test")
Reviewed-on: https://code.wireshark.org/review/30431
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 374b3f4d7e..44bce81e38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -840,7 +840,7 @@ endif() include(CheckCLinkerFlag) -if(NOT CMAKE_C_COMPILER_ID MATCHES "MSVC") +if(NOT CMAKE_C_COMPILER_ID MATCHES "MSVC" AND NOT OSS_FUZZ) # # The -pie linker option produces a position-independent executable. # Some Linux distributions have this enabled by default in the compiler, |