diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-01-27 22:01:03 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-01-27 22:01:03 +0000 |
commit | 97163f07ffb31729c3f71922c7cca43e5b3b0c20 (patch) | |
tree | ab5caf878374af60042ab8f8069423e64bbae2d1 /gnu/usr.bin/clang | |
parent | 12697494bde11c873bd0bf63f464bf2478706f87 (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/Makefile | 8 |
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 $@ |