From: Bruno Haible Date: Sun, 13 Aug 2023 23:45:39 +0000 (+0200) Subject: build: fix link errors with gcc < 4.8 X-Git-Tag: v9.4~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=049e5b0f8768df2c280ae258d6e6221d8ab7fe46;p=thirdparty%2Fcoreutils.git 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. --- 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