From 3f191789a4e1d08ea015742ef9a9da3f6ac94645 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sun, 30 May 2021 23:04:07 +0000 Subject: multimedia/vapoursynth-vmaf: unbreak on FreeBSD < 12 after 97ed9c524d49 FAILED: libvmaf.so c++ -o libvmaf.so libvmaf.so.p/VMAF_VMAF.cpp.o -flto -flto-jobs=0 -Wl,--as-needed -Wl,--allow-shlib-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libvmaf.so -fstack-protector-strong /usr/local/lib/libvmaf.so -Wl,--end-group /usr/bin/ld: unrecognized option '-plugin' /usr/bin/ld: use the --help option for usage information c++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. *** Error code 1 Reported by: pkg-fallout --- multimedia/vapoursynth-vmaf/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/multimedia/vapoursynth-vmaf/Makefile b/multimedia/vapoursynth-vmaf/Makefile index 6f047a2c6fb5..9be0103afe2c 100644 --- a/multimedia/vapoursynth-vmaf/Makefile +++ b/multimedia/vapoursynth-vmaf/Makefile @@ -21,6 +21,11 @@ DOCSDIR= ${PREFIX}/share/doc/${PKGBASE} PORTDATA= lib${PORTNAME}.so PORTDOCS= *.md +.if exists(/usr/bin/ld.lld) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld +# --plugin isn't supported by old GNU ld.bfd in base +LDFLAGS+= -fuse-ld=lld +.endif + OPTIONS_DEFINE= DOCS do-install-DOCS-on: -- cgit v1.2.3