From: Michel Normand Subject: libsodium configure cpuid chg Date: Fri, 16 Aug 2019 10:58:52 +0200 libsodium configure cpuid chg To avoid to have bad detection of cpuid when lto is enabled. This should solve the old upstream issue#604 https://github.com/jedisct1/libsodium/issues/604 Signed-off-by: Michel Normand --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: libsodium-1.0.18/configure.ac =================================================================== --- libsodium-1.0.18.orig/configure.ac +++ libsodium-1.0.18/configure.ac @@ -694,7 +694,7 @@ AC_SUBST(HAVE_TI_MODE_V) HAVE_CPUID_V=0 AS_IF([test "$enable_asm" != "no"],[ AC_MSG_CHECKING(for cpuid instruction) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[ + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[ unsigned int cpu_info[4]; __asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" : "=a" (cpu_info[0]), "=&r" (cpu_info[1]),