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>
This commit is contained in:
Stéphane Cerveau 2020-11-18 10:44:34 +01:00
parent 000b01c6f1
commit 52e7b2a8e0

View file

@ -293,10 +293,12 @@ if get_option('default_library') == 'static'
link_arg = '-Wl,--version-script=' + symbol_map link_arg = '-Wl,--version-script=' + symbol_map
if cc.has_link_argument(link_arg) if cc.has_link_argument(link_arg)
gstfull_link_args += 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 else
error('Failed to link with version script (' + symbol_map + '), check logs for details') error('Failed to link with version script (' + symbol_map + '), check logs for details')
endif endif
link_deps += symbol_map
endif endif
# Build both shared and static library # Build both shared and static library