summaryrefslogtreecommitdiff
path: root/share/mk
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2020-08-11 16:46:27 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2020-08-11 16:46:27 +0000
commit1a18ab420b6098b92f3a16db68e482682a506688 (patch)
treec76172f197eafd91fd6de98f425c8431b1550fcb /share/mk
parentaa5dbc89530716be934372503a7132ef1c9962e2 (diff)
downloadsrc-test2-1a18ab420b6098b92f3a16db68e482682a506688.tar.gz
src-test2-1a18ab420b6098b92f3a16db68e482682a506688.zip
Allow overriding the tool used for stripping binaries
Since the make variable STRIP is already used for other purposes, this uses STRIPBIN (which is also used for the same purpose by install(1). This allows using LLVM objcopy to strip binaries instead of the in-tree elftoolchain objcopy. We make use of this in CheriBSD since passing binaries generated by our toolchain to elftoolchain strip sometimes results in assertion failures. This allows working around https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248516 by specifying STRIPBIN=/path/to/llvm-strip Obtained from: CheriBSD Reviewed By: emaste, brooks Differential Revision: https://reviews.freebsd.org/D25988
Notes
Notes: svn path=/head/; revision=364119
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/sys.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index 2248d64f6580..215b04563e23 100644
--- a/share/mk/sys.mk
+++ b/share/mk/sys.mk
@@ -275,6 +275,7 @@ SHELL ?= sh
.if !defined(%POSIX)
SIZE ?= size
+STRIPBIN ?= strip
.endif
YACC ?= yacc