gl/vulkan: Fix static linking on macOS
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 21 Oct 2022 16:20:01 +0000 (21:50 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 24 Oct 2022 00:48:08 +0000 (00:48 +0000)
commita083280a583448554595233906dec3fde6de6ee1
tree854d378f9872d7fe3f2bfd88ed20c7042eec02d2
parent0077d13304c209d0fcb99ab3caa0774fa80664ef
gl/vulkan: Fix static linking on macOS

duplicate symbol '__invoke_on_main' in:
    /Library/Frameworks/GStreamer.framework/Versions/1.0/lib/libgstvulkan-1.0.a(cocoa_gstvkwindow_cocoa.m.o)
    /Library/Frameworks/GStreamer.framework/Versions/1.0/lib/libgstgl-1.0.a(cocoa_gstglwindow_cocoa.m.o)
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Also make the same change in iOS for consistency.

Continuation of https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1132

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3242>
subprojects/gst-plugins-bad/gst-libs/gst/vulkan/cocoa/gstvkcocoa_utils.h
subprojects/gst-plugins-bad/gst-libs/gst/vulkan/cocoa/gstvkwindow_cocoa.m
subprojects/gst-plugins-bad/gst-libs/gst/vulkan/ios/gstvkios_utils.h
subprojects/gst-plugins-bad/gst-libs/gst/vulkan/ios/gstvkwindow_ios.m
subprojects/gst-plugins-base/gst-libs/gst/gl/cocoa/gstgl_cocoa_private.h
subprojects/gst-plugins-base/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m
subprojects/gst-plugins-base/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m