diff options
author | Martin Szulecki | 2014-10-03 15:51:43 +0200 |
---|---|---|
committer | Martin Szulecki | 2014-10-03 16:29:42 +0200 |
commit | 4c4bbd31f52845de70f5b828121eeea62f8b4514 (patch) | |
tree | 6655c2eeba4a9865752523e68d73e982e8a0d515 /configure.ac | |
parent | d335f9350eef7b0140a249f92b791dc88b2900e5 (diff) | |
download | libimobiledevice-4c4bbd31f52845de70f5b828121eeea62f8b4514.tar.gz libimobiledevice-4c4bbd31f52845de70f5b828121eeea62f8b4514.tar.bz2 |
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 6e3e058..0e335f6 100644 --- a/configure.ac +++ b/configure.ac @@ -188,9 +188,14 @@ else building_debug_code=yes fi -AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char") +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 + # check for large file support AC_SYS_LARGEFILE LFS_CFLAGS='' |