diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2021-05-30 23:04:07 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2021-05-30 23:14:32 +0000 |
commit | 3f191789a4e1d08ea015742ef9a9da3f6ac94645 (patch) | |
tree | c1047efa06c54d448abcad37114c6acd573c4a5d | |
parent | 2ae62d5a2d18450a8a1cb34f7961630749c7fc0e (diff) | |
download | ports-3f191789a4e1d08ea015742ef9a9da3f6ac94645.tar.gz ports-3f191789a4e1d08ea015742ef9a9da3f6ac94645.zip |
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
-rw-r--r-- | multimedia/vapoursynth-vmaf/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
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: |