From c02a02d51a75517d8c2eda22d4355b4f96cee1de Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 13 Oct 2017 16:50:44 -0700 Subject: [PATCH] meson: Define visibility flags for static builds It's used unconditionally, but defined only for shared builds. For static builds define it but don't populate it. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index a065359..620f0cc 100644 --- a/meson.build +++ b/meson.build @@ -160,8 +160,8 @@ endforeach libtype = get_option('default_library') # Visibility compiler flags; we only use this for shared libraries +visibility_cflags = [] if libtype == 'shared' - visibility_cflags = [] if host_system == 'windows' conf.set('DLL_EXPORT', true) conf.set('EPOXY_PUBLIC', '__declspec(dllexport) extern')