From ef75509313fe8511e691e80efc5e2982efd688ca Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 24 Dec 2017 12:36:31 +0000 Subject: [PATCH] Add new llvm-objcopy utility, enabled when MK_CLANG_EXTRAS=yes. --- tools/build/mk/OptionalObsoleteFiles.inc | 1 + usr.bin/clang/Makefile | 1 + usr.bin/clang/llvm-objcopy/Makefile | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 usr.bin/clang/llvm-objcopy/Makefile diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index fc291a5dd5c9..a368d0c7ece7 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -1480,6 +1480,7 @@ OLD_FILES+=usr/bin/llvm-lto2 OLD_FILES+=usr/bin/llvm-mc OLD_FILES+=usr/bin/llvm-modextract OLD_FILES+=usr/bin/llvm-nm +OLD_FILES+=usr/bin/llvm-objcopy OLD_FILES+=usr/bin/llvm-pdbutil OLD_FILES+=usr/bin/llvm-ranlib OLD_FILES+=usr/bin/llvm-rtdyld diff --git a/usr.bin/clang/Makefile b/usr.bin/clang/Makefile index 0647c46d154d..f7548cf58d84 100644 --- a/usr.bin/clang/Makefile +++ b/usr.bin/clang/Makefile @@ -30,6 +30,7 @@ SUBDIR+= llvm-lto2 SUBDIR+= llvm-mc SUBDIR+= llvm-modextract SUBDIR+= llvm-nm +SUBDIR+= llvm-objcopy SUBDIR+= llvm-pdbutil SUBDIR+= llvm-profdata SUBDIR+= llvm-rtdyld diff --git a/usr.bin/clang/llvm-objcopy/Makefile b/usr.bin/clang/llvm-objcopy/Makefile new file mode 100644 index 000000000000..a71021857caf --- /dev/null +++ b/usr.bin/clang/llvm-objcopy/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +PROG_CXX= llvm-objcopy +MAN= + +SRCDIR= tools/llvm-objcopy +SRCS+= Object.cpp +SRCS+= llvm-objcopy.cpp + +.include "../llvm.prog.mk"