From 1a819f005385328d01b5393a5f21ab31828d63a7 Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 14 Dec 2015 23:45:12 -0800 Subject: [PATCH] makefile.unix: make visibility=hidden the default Change-Id: I22739f4db798bb95591839835b5368944396e887 --- makefile.unix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile.unix b/makefile.unix index 53821377..10defa18 100644 --- a/makefile.unix +++ b/makefile.unix @@ -61,6 +61,9 @@ endif EXTRA_FLAGS += -DWEBP_USE_THREAD EXTRA_LIBS += -lpthread +# Control symbol visibility. Comment out if your compiler doesn't support it. +EXTRA_FLAGS += -fvisibility=hidden + # Extra flags to emulate C89 strictness with the full ANSI EXTRA_FLAGS += -Wextra -Wold-style-definition EXTRA_FLAGS += -Wmissing-prototypes