diff options
author | emaste <emaste@FreeBSD.org> | 2014-12-01 17:49:42 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-12-01 17:49:42 +0000 |
commit | c79f6538fe5b1fe35382903168b76167be44db9e (patch) | |
tree | b5191de270f7e85906a95d316dda5b037968fa58 /gnu | |
parent | 1941346c9da7dde6f28d67d3053d7713294d012c (diff) | |
download | FreeBSD-src-c79f6538fe5b1fe35382903168b76167be44db9e.zip FreeBSD-src-c79f6538fe5b1fe35382903168b76167be44db9e.tar.gz |
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
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/Makefile | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/gnu/usr.bin/binutils/Makefile b/gnu/usr.bin/binutils/Makefile index a544bc5..9dac244 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> |