git: 3f191789a4e1 - main - multimedia/vapoursynth-vmaf: unbreak on FreeBSD < 12 after 97ed9c524d49
Jan Beich
jbeich at FreeBSD.org
Sun May 30 23:14:38 UTC 2021
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3f191789a4e1d08ea015742ef9a9da3f6ac94645
commit 3f191789a4e1d08ea015742ef9a9da3f6ac94645
Author: Jan Beich <jbeich at FreeBSD.org>
AuthorDate: 2021-05-30 23:04:07 +0000
Commit: Jan Beich <jbeich at FreeBSD.org>
CommitDate: 2021-05-30 23:14:32 +0000
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:
More information about the dev-commits-ports-all
mailing list