summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/clang
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2023-01-27 22:01:03 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2023-01-27 22:01:03 +0000
commit97163f07ffb31729c3f71922c7cca43e5b3b0c20 (patch)
treeab5caf878374af60042ab8f8069423e64bbae2d1 /gnu/usr.bin/clang
parent12697494bde11c873bd0bf63f464bf2478706f87 (diff)
Recommit the switch to use llvm-strip on architectures that use ld.lld.
ok naddy@, sthen@
Diffstat (limited to 'gnu/usr.bin/clang')
-rw-r--r--gnu/usr.bin/clang/llvm-objcopy/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/usr.bin/clang/llvm-objcopy/Makefile b/gnu/usr.bin/clang/llvm-objcopy/Makefile
index 36d39cfe974..6f3fd0fa134 100644
--- a/gnu/usr.bin/clang/llvm-objcopy/Makefile
+++ b/gnu/usr.bin/clang/llvm-objcopy/Makefile
@@ -1,8 +1,9 @@
-# $OpenBSD: Makefile,v 1.4 2023/01/19 22:54:45 kettenis Exp $
+# $OpenBSD: Makefile,v 1.5 2023/01/27 22:01:02 kettenis Exp $
.include <bsd.own.mk>
PROG= llvm-objcopy
+MAN= llvm-objcopy.1
BINDIR= /usr/bin
LIBEXECDIR=/usr/libexec
@@ -24,6 +25,11 @@ SRCS= ConfigManager.cpp \
WasmWriter.cpp \
WasmObjcopy.cpp
+.if ${LINKER_VERSION:L} == "lld"
+LINKS= ${BINDIR}/llvm-objcopy ${BINDIR}/strip
+MAN+= strip.1
+.endif
+
COFFObject.cpp:
ln -s ${.CURDIR}/../../../llvm/llvm/tools/llvm-objcopy/COFF/Object.cpp $@