Merge pull request #141 from dcbaker/submit/fix-static-build

meson: Define visibility flags for static builds
macos/v1.5.9
Emmanuele Bassi 7 years ago committed by GitHub
commit 1dc283e9a3
  1. 2
      meson.build

@ -160,8 +160,8 @@ endforeach
libtype = get_option('default_library') libtype = get_option('default_library')
# Visibility compiler flags; we only use this for shared libraries # Visibility compiler flags; we only use this for shared libraries
visibility_cflags = []
if libtype == 'shared' if libtype == 'shared'
visibility_cflags = []
if host_system == 'windows' if host_system == 'windows'
conf.set('DLL_EXPORT', true) conf.set('DLL_EXPORT', true)
conf.set('EPOXY_PUBLIC', '__declspec(dllexport) extern') conf.set('EPOXY_PUBLIC', '__declspec(dllexport) extern')

Loading…
Cancel
Save