Commit 70a82afa737b36e40de8d55c488a5079fe22bcf1

Ran Benita 2012-09-21T20:09:17

configure.ac: use XORG_TESTSET_CFLAG for -fvisibility=hidden Probably shouldn't use CFLAGS for that but o well. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/configure.ac b/configure.ac
index 2b40d41..f2a1ead 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,9 +78,7 @@ if test "x$CC_FOR_BUILD" = x; then
     fi
 fi
 
-if test "x$GCC" = xyes ; then
-    CFLAGS="$CFLAGS -fvisibility=hidden"
-fi
+XORG_TESTSET_CFLAG([CFLAGS], [-fvisibility=hidden])
 
 # Define a configuration option for the XKB config root
 xkb_base=`$PKG_CONFIG --variable=xkb_base xkeyboard-config`