Skip to content
Snippets Groups Projects
Commit b9321a33 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

buiild/autotools: use -fvisibility=hidden in release mode

parent dc9a211f
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ AC_SUBST(OPENDHT_PATCH_VERSION, opendht_patch_version)
AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [Build in debug mode, adds stricter warnings, disables optimization]))
AS_IF([test "x$enable_debug" = "xyes"],
[CXXFLAGS="${CXXFLAGS} -g -Wno-return-type -Wall -Wextra -Wnon-virtual-dtor -O0 -pedantic-errors"],
[CXXFLAGS="${CXXFLAGS} -O3 -pedantic-errors"])
[CXXFLAGS="${CXXFLAGS} -O3 -pedantic-errors -fvisibility=hidden"])
AC_PROG_CXX
AM_PROG_AR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment