summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2015-03-17 19:35:50 +0000
committerEd Maste <emaste@FreeBSD.org>2015-03-17 19:35:50 +0000
commita8bed44af5ede402b18c89516768ba21543a8288 (patch)
treeac8978fbdabc067d3f7c4353233e74af10313beb /Makefile.inc1
parent4d6481a4c912c12cefb7c372b058feae309ea61a (diff)
downloadsrc-test2-a8bed44af5ede402b18c89516768ba21543a8288.tar.gz
src-test2-a8bed44af5ede402b18c89516768ba21543a8288.zip
When cross-building with an external toolchain we still need a target strip
It is used by at least crunchide(1).
Notes
Notes: svn path=/head/; revision=280190
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc15
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 690696b2d505..1be39209c925 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1476,6 +1476,11 @@ _elftctools= lib/libelftc \
# cross-build on a FreeBSD 10 host:
_elftctools+= usr.bin/addr2line
.endif
+.elif ${TARGET_ARCH} != ${MACHINE_ARCH} && ${MK_ELFTOOLCHAIN_TOOLS} != "no"
+# If cross-building with an external binutils we still need to build strip for
+# the target (for at least crunchide).
+_elftctools= lib/libelftc \
+ usr.bin/elfcopy
.endif
# If an full path to an external cross compiler is given, don't build