From: kettenis Date: Thu, 19 Jan 2023 22:54:45 +0000 (+0000) Subject: Revert previous commit (but leave the man page around); llvm-strip behaves X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9517c33782961bd469cb18b8dd6e90a9dacc4526;p=openbsd Revert previous commit (but leave the man page around); llvm-strip behaves differently on files that are hardlinked and this is tripping up ports. requested by naddy@ --- diff --git a/gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper b/gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper index a022d50c904..9c2333c13dc 100644 --- a/gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper +++ b/gnu/usr.bin/binutils-2.17/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.29 2023/01/19 00:18:19 kettenis Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.30 2023/01/19 22:54:45 kettenis Exp $ .include @@ -29,7 +29,7 @@ MAN= binutils/doc/addr2line.1 binutils/doc/objcopy.1 \ SUBDIRS+= binutils CONF_SUBDIRS+= binutils INST_SUBDIRS+= binutils -MAN+= binutils/doc/strings.1 +MAN+= binutils/doc/strings.1 binutils/doc/strip.1 .if (${TARGET_ARCH} != "aarch64" && ${TARGET_ARCH} != "powerpc64" && \ ${TARGET_ARCH} != "riscv64") @@ -47,12 +47,8 @@ SKIP_AR= am__EXEEXT_7= am__EXEEXT_9= .endif .if ${LINKER_VERSION:L} == "bfd" -MAN+= binutils/doc/strip.1 maninstall: cd ${DESTDIR}${MANDIR}1 && rm -f ld.1 && ln ld.bfd.1 ld.1 -.else -# skip installing strip(1) which is am__EXEEXT_14 -SKIP_STRIP= am__EXEEXT_14= .endif # Used by the GNU Makefile @@ -143,7 +139,7 @@ install: maninstall INSTALL_PROGRAM='${INSTALL} -c ${INSTALL_STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}' \ INSTALL_DATA='${INSTALL} -c -o ${DOCOWN} -g ${DOCGRP} -m ${NONBINMODE}' \ INSTALL_INFO_HOST_MODULES='${INSTALL_INFO_HOST_MODULES}' \ - ${SKIP_AR} ${SKIP_STRIP} \ + ${SKIP_AR} \ $t .endfor .if ${LINKER_VERSION:L} == "bfd" diff --git a/gnu/usr.bin/clang/llvm-objcopy/Makefile b/gnu/usr.bin/clang/llvm-objcopy/Makefile index fd602ff998b..36d39cfe974 100644 --- a/gnu/usr.bin/clang/llvm-objcopy/Makefile +++ b/gnu/usr.bin/clang/llvm-objcopy/Makefile @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile,v 1.3 2023/01/19 00:18:19 kettenis Exp $ +# $OpenBSD: Makefile,v 1.4 2023/01/19 22:54:45 kettenis Exp $ .include PROG= llvm-objcopy -MAN= llvm-objcopy.1 BINDIR= /usr/bin LIBEXECDIR=/usr/libexec @@ -25,11 +24,6 @@ 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 $@