mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
configure: check for -fvisibility=hidden
and make it the default if available. this limits symbol visibility to those marked with WEBP_EXTERN. Change-Id: I529bf6d143a3008d9385044c87ad7dce72dce9a0
This commit is contained in:
parent
d6dad5d05f
commit
846caff47f
@ -52,6 +52,7 @@ AC_DEFUN([TEST_AND_ADD_CFLAGS],
|
||||
[$1="${$1} $2"],
|
||||
[AC_MSG_RESULT([no])])
|
||||
CFLAGS="$SAVED_CFLAGS"])
|
||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-fvisibility=hidden])
|
||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wall])
|
||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wdeclaration-after-statement])
|
||||
TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wextra])
|
||||
|
Loading…
Reference in New Issue
Block a user