build: use -fvisibility=hidden in autotools build
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é <saghul@gmail.com>
This commit is contained in:
parent
965fffc2e9
commit
79e69fd555
@ -24,6 +24,7 @@ AC_ENABLE_SHARED
|
|||||||
AC_ENABLE_STATIC
|
AC_ENABLE_STATIC
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AM_PROG_CC_C_O
|
AM_PROG_CC_C_O
|
||||||
|
CC_CHECK_CFLAGS_APPEND([-fvisibility=hidden])
|
||||||
CC_CHECK_CFLAGS_APPEND([-g])
|
CC_CHECK_CFLAGS_APPEND([-g])
|
||||||
CC_CHECK_CFLAGS_APPEND([-std=gnu89])
|
CC_CHECK_CFLAGS_APPEND([-std=gnu89])
|
||||||
CC_CHECK_CFLAGS_APPEND([-pedantic])
|
CC_CHECK_CFLAGS_APPEND([-pedantic])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user