Hi, We were backporting FIPS SLI changes to 1.10.3, in our target environment `-Wall` and -`Werror=unused-variable` are set, making the check for `__thread` fail. FYI if anyone else has this problem, fix attached.
Thanks, Lucas Mülling
Index: libgcrypt-1.10.3/configure.ac =================================================================== --- libgcrypt-1.10.3.orig/configure.ac +++ libgcrypt-1.10.3/configure.ac @@ -1502,7 +1502,10 @@ AC_CACHE_CHECK([whether compiler support [gcry_cv_gcc_storage_class__thread], [gcry_cv_gcc_storage_class__thread=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <stdlib.h>], - [static __thread int bar;] + [ + [static __thread int bar = 0;] + [(void)bar;] + ] )], [gcry_cv_gcc_storage_class__thread=yes])]) if test "$gcry_cv_gcc_storage_class__thread" = "yes" ; then
_______________________________________________ Gcrypt-devel mailing list Gcrypt-devel@gnupg.org https://lists.gnupg.org/mailman/listinfo/gcrypt-devel