Skip to content

Commit 5cb2df4

Browse files
Enable -fvisibility-inlines-hidden
As we do now for audacious-core.
1 parent 6725e91 commit 5cb2df4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

acinclude.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ if test "x$HAVE_MSWINDOWS" = "xyes" ; then
151151
EXPORT="__declspec(dllexport)"
152152
elif test "x$GCC" = "xyes" ; then
153153
CFLAGS="$CFLAGS -fvisibility=hidden"
154-
CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
154+
CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
155155
EXPORT="__attribute__((visibility(\"default\")))"
156156
else
157157
AC_MSG_ERROR([Unknown syntax for EXPORT keyword])

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ if cc.get_id() in ['gcc', 'clang']
9595

9696
cxx_flags = [
9797
'-Wno-non-virtual-dtor',
98-
'-Woverloaded-virtual'
98+
'-Woverloaded-virtual',
99+
'-fvisibility-inlines-hidden'
99100
]
100101

101102
check_cflags = common_flags

0 commit comments

Comments
 (0)