From 79e69fd5551426120e3fd77f4fc59f2bca66bd1f Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 24 Jan 2015 18:44:02 +0100 Subject: [PATCH] build: use -fvisibility=hidden in autotools build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gyp build only exports symbols from the API but the autotools build did not until now. Fixes: https://github.com/libuv/libuv/issues/149 PR-URL: https://github.com/libuv/libuv/pull/164 Reviewed-By: Saúl Ibarra Corretgé --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index d765894e..0de08420 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,7 @@ AC_ENABLE_SHARED AC_ENABLE_STATIC AC_PROG_CC AM_PROG_CC_C_O +CC_CHECK_CFLAGS_APPEND([-fvisibility=hidden]) CC_CHECK_CFLAGS_APPEND([-g]) CC_CHECK_CFLAGS_APPEND([-std=gnu89]) CC_CHECK_CFLAGS_APPEND([-pedantic])