]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
When cross-building with an external toolchain we still need a target strip
authoremaste <emaste@FreeBSD.org>
Tue, 17 Mar 2015 19:35:50 +0000 (19:35 +0000)
committeremaste <emaste@FreeBSD.org>
Tue, 17 Mar 2015 19:35:50 +0000 (19:35 +0000)
It is used by at least crunchide(1).

Makefile.inc1

index 690696b2d505e351786cfa6efd952f07193a1965..1be39209c925332ec6e50db58cfa42adeb6d57c4 100644 (file)
@@ -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