summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2013-05-09 23:33:53 +0000
committerriastradh <riastradh@pkgsrc.org>2013-05-09 23:33:53 +0000
commit54e5f813c3994ab01338c39095124d9a005d514d (patch)
tree9b18f43b9e4d965009621262a9769d472c84c3b8 /mk
parentf8d446c55ba9019f5289920966356961acd9e715 (diff)
downloadpkgsrc-54e5f813c3994ab01338c39095124d9a005d514d.tar.gz
Set NATIVE_CC/CC, NATIVE_CXX/CXX, and NATIVE_LD/LD for cross-builds.
The NATIVE_xyz versions are for packages that build tools that they run natively but don't end up in the final product. This is a provisional scheme -- it should be replaced eventually by something more principled. ok agc
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/tools.NetBSD.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/mk/tools/tools.NetBSD.mk b/mk/tools/tools.NetBSD.mk
index 90a435bd7db..1bf0ec215dd 100644
--- a/mk/tools/tools.NetBSD.mk
+++ b/mk/tools/tools.NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: tools.NetBSD.mk,v 1.46 2012/05/26 13:09:54 obache Exp $
+# $NetBSD: tools.NetBSD.mk,v 1.47 2013/05/09 23:33:53 riastradh Exp $
#
# System-supplied tools for the NetBSD operating system.
@@ -137,7 +137,13 @@ TOOLS_CREATE+= ar
TOOLS_PATH.ranlib?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib
TOOLS_CREATE+= ranlib
-NATIVE_CC:= /usr/bin/cc
+NATIVE_CC:= /usr/bin/cc -B /usr/libexec -B /usr/bin
CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc
+NATIVE_CXX:= /usr/bin/c++ -B /usr/libexec -B /usr/bin
+CXX= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-g++
+
+NATIVE_LD:= /usr/bin/ld
+LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld
+
.endif