gstreamer-full causes a build failure on macOS with Apple Clang
Hi guys, I'm vcpkg maintainer. Today I'm trying to recover the gstreamer build on OSX (https://github.com/microsoft/vcpkg/pull/20814), but got some errors:
7563 Running compile:
7564 Working directory: /Users/usr/Documents/vcpkg/20814/vcpkg/buildtrees/gstreamer/x64-osx-dbg/meson-private/tmpiwjth14m
7565 Command line: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/Users/usr/Documents/vcpkg/20814/vcpkg/installed/x64-osx/debug/lib -I/Users/usr/Documents/vcpkg/20814/vcpkg/installed/x64 -osx/include /Users/usr/Documents/vcpkg/20814/vcpkg/buildtrees/gstreamer/x64-osx-dbg/meson-private/tmpiwjth14m/testfile.c -o /Users/usr/Documents/vcpkg/20814/vcpkg/buildtrees/gstreamer/x64-osx-dbg/meson-private/tmpiwjth14m/outpu t.exe -fPIC -g -O0 -Wl,-fatal_warnings -Wl,--version-script=/Users/usr/Documents/vcpkg/20814/vcpkg/buildtrees/gstreamer/src/1.19.2-dbedf5df9d.clean/gstreamer-full-default.map
7566
7567 Code:
7568 int main(void) { return 0; }
7569
7570 Compiler stdout:
7571
7572 Compiler stderr:
7573 ld: unknown option: --version-script=/Users/usr/Documents/vcpkg/20814/vcpkg/buildtrees/gstreamer/src/1.19.2-dbedf5df9d.clean/gstreamer-full-default.map
7574 clang: error: linker command failed with exit code 1 (use -v to see invocation)
7575
7576 Compiler for C supports link arguments -Wl,--version-script=/Users/usr/Documents/vcpkg/20814/vcpkg/buildtrees/gstreamer/src/1.19.2-dbedf5df9d.clean/gstreamer-full-default.map: NO
7577
The related code here: https://gitlab.freedesktop.org/gstreamer/gst-build/-/blob/master/meson.build#L327-338
I think the compiler flag --version-script
should only be accept with gcc, not Darwin, and I didn't see any judgment for Darwin here.
So is there anything wrong with the build script? Please take a look. Thanks.