summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-23 15:28:55 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-23 15:28:55 +0000
commit6ba50a2001bcfa1b467f69985a002fc064d8c807 (patch)
tree286e3d8e4c7a3cd3b426563187a6c0f371c4538d /configure.ac
parent9315f64b6e8b6c1d986d90ffa207008d29b45c06 (diff)
Added symbol visibility features to the build to hide internal symbols (GCC)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 752d1de..9d605f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,11 @@ DEFAULT_CFLAGS="-Wall -Wcast-align -Wstrict-prototypes \
AC_SUBST(DEFAULT_CFLAGS)
AC_SUBST(VERSION_INFO)
+### Check for -fvisibility=hidden support
+gl_VISIBILITY
+AM_CFLAGS="$AM_CFLAGS $CFLAG_VISIBILITY"
+AC_SUBST([AM_CFLAGS])
+
### Check for platform
#case $host in
#AIX) AC_DEFINE(HTS_PLATFORM, 1, [Defined to build under AIX]);;