Commit 9887eecc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Mark other symbols as hidden

Unfortunately, libtool is yet incapable of doing marking symbols as
hidden (not exported) at compilation time.  So lets do it manually.
According to the GCC documentation, this allow some compile-time
optimizations depending on the platform.
This was already done by Damien earlier (and removed during the
plugin headers cleanup).

The check is disabled on Windows, as the compiler accepts the flag,
but generates lots of warnings during compilation.
parent d95990dc
......@@ -1036,6 +1036,23 @@ AS_IF([test "${enable_coverage}" != "no"], [
AS_IF([test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"], [
AC_CACHE_CHECK([if $CC accepts -fvisibility=hidden],
[ac_cv_c_visibility_hidden], [
CFLAGS="${CFLAGS_save} -ffast-math"
], [
AS_IF([test "${ac_cv_c_visibility_hidden}" != "no"], [
CFLAGS="${CFLAGS} -fvisibility=hidden"
CXXFLAGS="${CXXFLAGS} -fvisibility=hidden"
OBJCFLAGS="${OBJCFLAGS} -fvisibility=hidden"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment