[master] 118fd10c9 build: Move misplaced suncc configure check

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Jan 30 10:59:05 UTC 2023


commit 118fd10c9e81920e0c31906c2bf5c62a3f25cd5b
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon Jan 30 11:23:58 2023 +0100

    build: Move misplaced suncc configure check

diff --git a/configure.ac b/configure.ac
index 4de4012ba..dcaffeb5e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -249,14 +249,14 @@ LIBS="${save_LIBS}"
 
 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
 
-# Support for visibility attribute
-save_CFLAGS="${CFLAGS}"
 if test "$SUNCC" = "yes" ; then
 	CFLAGS="${CFLAGS} -errwarn=%all,no%E_EMPTY_TRANSLATION_UNIT"
 else
 	CFLAGS="${CFLAGS} -Werror"
 fi
 
+# Support for visibility attribute
+save_CFLAGS="${CFLAGS}"
 AC_CACHE_CHECK([whether we have support for visibility attributes],
 	[ac_cv_have_viz],
 	[AC_RUN_IFELSE(


More information about the varnish-commit mailing list