aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/Makefile
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2014-12-01 17:49:42 +0000
committerEd Maste <emaste@FreeBSD.org>2014-12-01 17:49:42 +0000
commit31942939034ecc9586d0e44f1c9ce30d0816dca9 (patch)
treeb5191de270f7e85906a95d316dda5b037968fa58 /gnu/usr.bin/binutils/Makefile
parent6afb32fc67fa07a0cae683ef3fffe318e1e983df (diff)
downloadsrc-31942939034ecc9586d0e44f1c9ce30d0816dca9.tar.gz
src-31942939034ecc9586d0e44f1c9ce30d0816dca9.zip
Build infrastructure for elftoolchain tools
Set WITH_ELFTOOLCHAIN_TOOLS in src.conf to use the elftoolchain version of the following tools: * addr2line * elfcopy (strip / mcs) * nm * size * strings Reviewed by: bapt (earlier version) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1224
Notes
Notes: svn path=/head/; revision=275373
Diffstat (limited to 'gnu/usr.bin/binutils/Makefile')
-rw-r--r--gnu/usr.bin/binutils/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/gnu/usr.bin/binutils/Makefile b/gnu/usr.bin/binutils/Makefile
index a544bc54b32d..9dac24403520 100644
--- a/gnu/usr.bin/binutils/Makefile
+++ b/gnu/usr.bin/binutils/Makefile
@@ -1,19 +1,29 @@
# $FreeBSD$
+.include <src.opts.mk>
+
SUBDIR= libiberty \
libbfd \
libopcodes \
libbinutils \
- addr2line \
+ ${_addr2line} \
as \
ld \
- nm \
+ ${_nm} \
objcopy \
objdump \
readelf \
- size \
- strings \
- strip \
+ ${_size} \
+ ${_strings} \
+ ${_strip} \
doc
+
+.if ${MK_ELFTOOLCHAIN_TOOLS} == "no"
+_addr2line= addr2line
+_nm= nm
+_size= size
+_strings= strings
+_strip= strip
+.endif
.include <bsd.subdir.mk>