summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2020-11-18 10:44:34 +0100
committerStéphane Cerveau <scerveau@collabora.com>2020-11-23 17:32:08 +0100
commit52e7b2a8e039450bd15e812ada6bb0f53ce316e2 (patch)
treef5e0449d27426e29abc67fa7cfeaa6a8661efbf8
parent000b01c6f1cb76433271b82979db0bad7897edc6 (diff)
gst-full: fix static build on Windows host
Static build needs a version script which is not available on Windows. Need to implement use of def file. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/226>
-rw-r--r--meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index c6e6b2a..551000e 100644
--- a/meson.build
+++ b/meson.build
@@ -293,10 +293,12 @@ if get_option('default_library') == 'static'
link_arg = '-Wl,--version-script=' + symbol_map
if cc.has_link_argument(link_arg)
gstfull_link_args += link_arg
+ link_deps += symbol_map
+ elif cc.get_id() == 'msvc'
+ warning('FIXME: Provide a def file to publish the public symbols')
else
error('Failed to link with version script (' + symbol_map + '), check logs for details')
endif
- link_deps += symbol_map
endif
# Build both shared and static library