Index: Makefile.inc1 =================================================================== --- Makefile.inc1 +++ Makefile.inc1 @@ -1831,6 +1831,17 @@ # These are not required by the build, but can be useful for developers who # cross-build on a FreeBSD 10 host: _elftctools+= usr.bin/addr2line + +_ct= cross-tools +.for _tool in \ + usr.bin/elfcopy \ + usr.bin/nm \ + usr.bin/size \ + usr.bin/strings \ + usr.bin/addr2line +${_ct}_${_tool}: ${_ct}_lib/libelftc +.endfor + .endif .elif ${TARGET_ARCH} != ${MACHINE_ARCH} && ${MK_ELFTOOLCHAIN_BOOTSTRAP} != "no" # If cross-building with an external binutils we still need to build strip for @@ -1851,7 +1862,6 @@ _usb_tools= sys/boot/usb/tools .endif -cross-tools: .MAKE .PHONY .for _tool in \ ${LOCAL_XTOOL_DIRS} \ ${_clang_libs} \ @@ -1862,11 +1872,13 @@ ${_cc} \ ${_btxld} \ ${_usb_tools} +cross-tools_${_tool}: .PHONY ${_+_}@${ECHODIR} "===> ${_tool} (obj,all,install)"; \ cd ${.CURDIR}/${_tool}; \ ${MAKE} DIRPRFX=${_tool}/ obj; \ ${MAKE} DIRPRFX=${_tool}/ all; \ ${MAKE} DIRPRFX=${_tool}/ DESTDIR=${MAKEOBJDIRPREFIX} install +cross-tools: cross-tools_${_tool} .endfor NXBDESTDIR= ${OBJTREE}/nxb-bin