diff --git a/subprojects/gst-plugins-base/gst-libs/gst/sdp/meson.build b/subprojects/gst-plugins-base/gst-libs/gst/sdp/meson.build index 4841d6155f..c8d3851421 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/sdp/meson.build +++ b/subprojects/gst-plugins-base/gst-libs/gst/sdp/meson.build @@ -24,6 +24,7 @@ library_def = {'lib': gstsdp} pkg_name = 'gstreamer-sdp-1.0' sdp_gen_sources = [] pkgconfig.generate(gstsdp, + libraries : [gst_dep], variables : pkgconfig_variables, subdirs : pkgconfig_subdirs, name : pkg_name, diff --git a/subprojects/gstreamer/gst/meson.build b/subprojects/gstreamer/gst/meson.build index 2692e195fd..e1e8b6c156 100644 --- a/subprojects/gstreamer/gst/meson.build +++ b/subprojects/gstreamer/gst/meson.build @@ -259,7 +259,7 @@ libgst = library('gstreamer-1.0', gst_sources, pkg_name = 'gstreamer-1.0' library_def = {'lib': libgst} pkgconfig.generate(libgst, - libraries : [glib_dep, gobject_dep], + libraries : [glib_dep, gobject_dep] + pkgconfig_libs, variables : pkgconfig_variables, uninstalled_variables: pkgconfig_uninstalled_variables, subdirs : pkgconfig_subdirs, diff --git a/subprojects/gstreamer/meson.build b/subprojects/gstreamer/meson.build index 17c7e17f9c..a293e43109 100644 --- a/subprojects/gstreamer/meson.build +++ b/subprojects/gstreamer/meson.build @@ -616,6 +616,10 @@ pkgconfig_uninstalled_variables = ['exec_prefix=${prefix}', 'bashhelpersdir=${gstreamerdir}/data/bash-completion/helpers', 'helpersdir=${gstreamerdir}/libs/gst/helpers'] pkgconfig_subdirs = ['gstreamer-1.0'] +pkgconfig_libs = [] +if host_system == 'darwin' + pkgconfig_libs = ['-Wl,-rpath,${libdir}'] +endif static_build = get_option('default_library') == 'static' libraries = []