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.
macos/v1.5.9
Dylan Baker 7 years ago
parent b49d190c65
commit c02a02d51a
  1. 2
      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')

Loading…
Cancel
Save