diff options
author | Martin Szulecki <m.szulecki@libimobiledevice.org> | 2014-10-03 16:01:38 +0200 |
---|---|---|
committer | Martin Szulecki <m.szulecki@libimobiledevice.org> | 2014-10-03 16:01:38 +0200 |
commit | 8978fd090b57dffead83ca53488e228ae617a848 (patch) | |
tree | ad534ba60de160b430e81870992ac090559a20ba /configure.ac | |
parent | 3e404301be0bf0b173d1e12cab547164a29c4a5d (diff) | |
download | libideviceactivation-8978fd090b57dffead83ca53488e228ae617a848.tar.gz |
Avoid exporting non-public symbols
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index dfdd09d..f0b094b 100644 --- a/configure.ac +++ b/configure.ac @@ -56,9 +56,14 @@ AC_TYPE_UINT8_T # Checks for library functions. AC_CHECK_FUNCS([strcasecmp strdup strerror strndup]) -AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter") +AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden") AC_SUBST(GLOBAL_CFLAGS) +case "$GLOBAL_CFLAGS" in + *-fvisibility=hidden*) + AC_DEFINE([HAVE_FVISIBILITY], [1], [Define if compiled with -fvisibility=hidden]) +esac + m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) AC_OUTPUT([ |