From: Alexander Smorkalov Date: Tue, 10 Sep 2024 14:07:09 +0000 (+0300) Subject: Fixed false positive HAVE_ARMV6_INTRIN value on old ARM platforms. X-Git-Tag: 2.1.8~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ea610d16680f1abd73bf484dd88bbcbfe38bec7;p=thirdparty%2Fzlib-ng.git Fixed false positive HAVE_ARMV6_INTRIN value on old ARM platforms. --- diff --git a/cmake/detect-intrinsics.cmake b/cmake/detect-intrinsics.cmake index 81032cb6..c0c7f192 100644 --- a/cmake/detect-intrinsics.cmake +++ b/cmake/detect-intrinsics.cmake @@ -67,7 +67,7 @@ macro(check_armv6_compiler_flag) return __uqsub16(a, b); #endif } - int main(void) { return 0; }" + int main(void) { return f(1,2); }" HAVE_ARMV6_INTRIN ) set(CMAKE_REQUIRED_FLAGS) diff --git a/configure b/configure index a6ba5373..e9b63dae 100755 --- a/configure +++ b/configure @@ -1228,7 +1228,7 @@ EOF unsigned int f(unsigned int a, unsigned int b) { return __uqsub16(a, b); } -int main(void) { return 0; } +int main(void) { return f(1, 2); } EOF if try ${CC} ${CFLAGS} ${armv6flag} $test.c; then echo "Checking for ARMv6 intrinsics ... Yes." | tee -a configure.log