From 049e5b0f8768df2c280ae258d6e6221d8ab7fe46 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 14 Aug 2023 01:45:39 +0200 Subject: [PATCH] build: fix link errors with gcc < 4.8 * configure.ac: Attempt to link, not only compile, the test programs with __builtin_cpu_supports, to avoid link errors with cksum and wc. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index afc1098f76..948fb3653e 100644 --- a/configure.ac +++ b/configure.ac @@ -521,7 +521,7 @@ ac_c_werror_flag=$cu_save_c_werror_flag ac_save_CFLAGS=$CFLAGS CFLAGS="-mavx -mpclmul $CFLAGS" AC_MSG_CHECKING([if pclmul intrinsic exists]) -AC_COMPILE_IFELSE( +AC_LINK_IFELSE( [AC_LANG_SOURCE([[ #include @@ -550,7 +550,7 @@ CFLAGS=$ac_save_CFLAGS CFLAGS="-mavx2 $CFLAGS" AC_MSG_CHECKING([if avx2 intrinstics exists]) -AC_COMPILE_IFELSE( +AC_LINK_IFELSE( [AC_LANG_SOURCE([[ #include -- 2.47.2