summaryrefslogtreecommitdiffstats
path: root/usr.bin/addr2line
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-12-01 17:49:42 +0000
committeremaste <emaste@FreeBSD.org>2014-12-01 17:49:42 +0000
commitc79f6538fe5b1fe35382903168b76167be44db9e (patch)
treeb5191de270f7e85906a95d316dda5b037968fa58 /usr.bin/addr2line
parent1941346c9da7dde6f28d67d3053d7713294d012c (diff)
downloadFreeBSD-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 'usr.bin/addr2line')
-rw-r--r--usr.bin/addr2line/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/usr.bin/addr2line/Makefile b/usr.bin/addr2line/Makefile
new file mode 100644
index 0000000..918707a
--- /dev/null
+++ b/usr.bin/addr2line/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+.include <src.opts.mk>
+
+ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain
+ADDR2LINEDIR= ${ELFTCDIR}/addr2line
+
+.PATH: ${ADDR2LINEDIR}
+
+PROG= addr2line
+
+LIBADD= elftc dwarf elf
+
+CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTCDIR}/common
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud