From: Nathan Moinvaziri Date: Mon, 15 Feb 2021 03:03:29 +0000 (-0800) Subject: Use cmake check_c_compiler_flag for -fno-semantic-interposition compiler flag check. X-Git-Tag: 2.0.0~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19ea232beef8f4fba7d1ade7eb7eca2a820515ec;p=thirdparty%2Fzlib-ng.git Use cmake check_c_compiler_flag for -fno-semantic-interposition compiler flag check. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c4c4343b..07ca5128 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -363,12 +363,7 @@ endif() # # Check whether compiler supports -fno-semantic-interposition parameter # -set(CMAKE_REQUIRED_FLAGS "-fno-semantic-interposition") -check_c_source_compiles( - "int main() { return 0; }" - HAVE_NO_INTERPOSITION -) -set(CMAKE_REQUIRED_FLAGS) +check_c_compiler_flag(-fno-semantic-interposition HAVE_NO_INTERPOSITION) # # Check if we can hide zlib internal symbols that are linked between separate source files using hidden