From 24d939a19bca07d6fb888dbfb46c06d1bf5e87d6 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 2 Sep 2020 21:53:51 +0530 Subject: [PATCH] meson: Fix gstreamer-gl-prototypes pkgconfig file on Windows When we're using wgl, we have to link to `-lopengl32`, not `-lGL`. Fixes building of anything that uses this pc file, such as the nvcodec plugin. Part-of: --- pkgconfig/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgconfig/meson.build b/pkgconfig/meson.build index 8757894ef0..438cb1e866 100644 --- a/pkgconfig/meson.build +++ b/pkgconfig/meson.build @@ -58,7 +58,11 @@ if build_gstgl if gl_dep.type_name() == 'pkgconfig' gl_proto_requires += ' gl' elif gl_dep.type_name() == 'library' - gl_proto_libs += ' -lGL' + if 'wgl' in enabled_gl_platforms + gl_proto_libs += ' -lopengl32' + else + gl_proto_libs += ' -lGL' + endif elif gl_dep.type_name() == 'appleframework' gl_proto_libs += ' -framework OpenGL' endif