]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Rename CHECK_ATTR_IFUNC to ALLOW_ATTR_IFUNC.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 27 Jun 2023 14:19:49 +0000 (17:19 +0300)
committerJia Tan <jiat0218@gmail.com>
Tue, 27 Jun 2023 15:56:06 +0000 (23:56 +0800)
It's so that there's a clear difference in wording compared
to liblzma's integrity check types.

CMakeLists.txt

index fb5d2582d7e23507b45401badbdccfba11e4f5d2..66a5ded68de7af5f467e41d23f4cff5f22b50bc2 100644 (file)
@@ -764,10 +764,10 @@ cmake_pop_check_state()
 tuklib_add_definition_if(liblzma HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR)
 
 # Check for __attribute__((__ifunc__())) support.
-option(CHECK_ATTR_IFUNC "Use __attribute__((__ifunc__())) if supported by \
-the system" ON)
+option(ALLOW_ATTR_IFUNC "Allow use of __attribute__((__ifunc__())) if \
+supported by the system" ON)
 
-if (CHECK_ATTR_IFUNC)
+if(ALLOW_ATTR_IFUNC)
     cmake_push_check_state()
     set(CMAKE_REQUIRED_FLAGS "-Werror")
     check_c_source_compiles("