From 846caff47ffcd27079c6ff80993f55245eaebdf2 Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 14 Dec 2015 22:55:01 -0800 Subject: [PATCH] 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 --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 94385b42..0fa16930 100644 --- a/configure.ac +++ b/configure.ac @@ -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])