aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2022-04-28 17:16:14 +0000
committerBrooks Davis <brooks@FreeBSD.org>2022-04-28 17:16:14 +0000
commit056b4e7ee18213aefdf156a54e32edb12b015a80 (patch)
treef34c63038427b7d858b0c2986c4f37340fbd8ef7
parent8796711734dde7eff8e5140996db8de2f3dae8fe (diff)
downloadports-056b4e7ee18213aefdf156a54e32edb12b015a80.tar.gz
ports-056b4e7ee18213aefdf156a54e32edb12b015a80.zip
devel/llvm-{cheri,morello}: Add ld symlink
Add an ld -> ld.lld symlink in ${PREFIX}/llvm-{cheri,morello}/bin so that clang finds the linker without adding -fuse-ld=ld.lld.
-rw-r--r--devel/llvm-cheri/Makefile5
-rw-r--r--devel/llvm-cheri/pkg-plist1
-rw-r--r--devel/llvm-morello/pkg-plist1
3 files changed, 6 insertions, 1 deletions
diff --git a/devel/llvm-cheri/Makefile b/devel/llvm-cheri/Makefile
index ad05b80a6d67..36a92d0df68e 100644
--- a/devel/llvm-cheri/Makefile
+++ b/devel/llvm-cheri/Makefile
@@ -1,6 +1,6 @@
PORTNAME= llvm
PORTVERSION= ${LLVM_MAJOR}.0.d${SNAPDATE}
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= devel lang
PKGNAMESUFFIX= ${LLVM_SUFFIX}
@@ -238,6 +238,9 @@ post-install-DOCS-on:
${RMDIR} ${STAGEDIR}${LLVM_PREFIX}/share/man/man1/
${RMDIR} ${STAGEDIR}${LLVM_PREFIX}/share/man/
+post-install-LLD-on:
+ ${LN} -s ld.lld ${STAGEDIR}${LLVM_PREFIX}/bin/ld
+
post-install-LLDB-on:
.if ${OPSYS} != "FreeBSD" || ${COMPILER_TYPE} == clang
${RM} ${STAGEDIR}${LLVM_PREFIX}/lib/python*/site-packages/lib
diff --git a/devel/llvm-cheri/pkg-plist b/devel/llvm-cheri/pkg-plist
index 02f6b42b5b3f..78d335a792f8 100644
--- a/devel/llvm-cheri/pkg-plist
+++ b/devel/llvm-cheri/pkg-plist
@@ -113,6 +113,7 @@ llvm%%LLVM_SUFFIX%%/bin/dsymutil
%%CLANG%%llvm%%LLVM_SUFFIX%%/bin/git-clang-format
llvm%%LLVM_SUFFIX%%/bin/hmaptool
llvm%%LLVM_SUFFIX%%/bin/intercept-build
+llvm%%LLVM_SUFFIX%%/bin/ld
%%LLD%%llvm%%LLVM_SUFFIX%%/bin/ld.lld
%%LLD%%llvm%%LLVM_SUFFIX%%/bin/ld64.lld
%%LLD%%llvm%%LLVM_SUFFIX%%/bin/ld64.lld.darwinnew
diff --git a/devel/llvm-morello/pkg-plist b/devel/llvm-morello/pkg-plist
index ee44584adefd..ff1a3bdef8dc 100644
--- a/devel/llvm-morello/pkg-plist
+++ b/devel/llvm-morello/pkg-plist
@@ -113,6 +113,7 @@ llvm%%LLVM_SUFFIX%%/bin/dsymutil
%%CLANG%%llvm%%LLVM_SUFFIX%%/bin/git-clang-format
llvm%%LLVM_SUFFIX%%/bin/hmaptool
llvm%%LLVM_SUFFIX%%/bin/intercept-build
+llvm%%LLVM_SUFFIX%%/bin/ld
%%LLD%%llvm%%LLVM_SUFFIX%%/bin/ld.lld
%%LLD%%llvm%%LLVM_SUFFIX%%/bin/ld64.lld
%%LLD%%llvm%%LLVM_SUFFIX%%/bin/ld64.lld.darwinnew