[- invalid linker name -fuse-ld=gold]
1 https://stackoverflow.com/questions/44650470/android-ndk-linker-gstreamer-invalid-linker-name-fuse-ld-gold
Fix: you need to change two files per architecture in the GStreamer directory so that the linker gets called as gold.exe and not gold.
For each architecture you're interested in you need to go to (using arm64 as an example):
- path\to\Gstreamer\root\arm64\share\gst-android\ndk-build\gstreamer-1.0.mk and change -fuse-ld=gold to -fuse-ld=gold.exe (it only appears once in the file).
Now go to:
- path\to\Gstreamer\root\arm64\include\gmp.h and change -fuse-ld=gold to -fuse-ld=gold.exe (again, only one occurrence).
2 https://bugzilla.gnome.org/show_bug.cgi?id=759737
a workaround is to set
NDK_TOOLCHAIN_VERSION := 4.9
in Application.mk, the defaul value is clang, maybe this could be documented until the switch to clang
网友评论