Skip to content

Commit

Permalink
rpicamsrc: meson: drop map file and fix plugin symbol export with new…
Browse files Browse the repository at this point in the history
…er gstreamer versions

Use -fvisibility instead of a map file for symbol export, so that
the right symbols get exported with newer gstreamer versions. Older
GStreamer versions also still work of course.

Fixes blacklisting/plugin-loading issues with GStreamer >= 1.14

Fixes https://github.com/thaytan/gst-rpicamsrc/issues/984,
closes thaytan/gst-rpicamsrc#94
and thaytan/gst-rpicamsrc#67
  • Loading branch information
tp-m authored and havardgraff committed Aug 26, 2021
1 parent 657220a commit 96c05f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions sys/rpicamsrc/gstplugin.map

This file was deleted.

4 changes: 0 additions & 4 deletions sys/rpicamsrc/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@ gstrpicam_enum_types_c = custom_target('gstrpicam-enum-types.c',
command : [glib_mkenums, '--template', meson.current_source_dir() + '/gstrpicam-enums-template.c', '@INPUT@'],
capture : true)

mapfile = 'gstplugin.map'

library('gstrpicamsrc',
rpicamsrc_sources, gstrpicam_enum_types_h, gstrpicam_enum_types_c,
c_args : gst_rpicamsrc_args,
include_directories : config_inc,
link_args : '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile),
link_depends : mapfile,
dependencies : [gst_dep, gstbase_dep, gstvideo_dep] + mmal_deps,
install : true,
install_dir : plugins_install_dir)

0 comments on commit 96c05f3

Please sign in to comment.