Permalink
Browse files

tools.NetBSD.mk: add TOOLS_PLATFORM.objcopy

TODO: this will be also needed for other PLATFORMs that can use PKG_DEBUGDATA.
  • Loading branch information...
iamleot committed Jun 3, 2016
1 parent 6c464bc commit df25620f1b912e8f7a5b466690477be7583982e0
Showing with 5 additions and 0 deletions.
  1. +5 −0 mk/tools/tools.NetBSD.mk
View
@@ -80,6 +80,11 @@ TOOLS_PLATFORM.mtree?= /usr/sbin/mtree
TOOLS_PLATFORM.mv?= /bin/mv
TOOLS_PLATFORM.nice?= /usr/bin/nice
TOOLS_PLATFORM.nroff?= /usr/bin/nroff
+.if empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+TOOLS_PLATFORM.objcopy?= /usr/bin/objcopy
+.else
+TOOLS_PLATFORM.objcopy?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objcopy
+.endif
TOOLS_PLATFORM.openssl?= /usr/bin/openssl
TOOLS_PLATFORM.patch?= /usr/bin/patch
TOOLS_PLATFORM.pax?= /bin/pax

0 comments on commit df25620

Please sign in to comment.