From a585fb7042440cb4ece38ecfb310b71fd723b26b Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 17 Apr 1997 06:43:32 +0000 Subject: [PATCH] Add several HOST_* variables. These identical to their non-HOST_ counterparts, and are used to compile programs that are needed to compile other programs (see src/bin/sh for an example use). These facilitate cross-compiling. Define an NM variable - the program to use for nm(1) --- share/mk/bsd.sys.mk | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 27053623b9db..312b026a1e71 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.sys.mk,v 1.3 1996/05/15 19:46:51 scottr Exp $ +# $NetBSD: bsd.sys.mk,v 1.4 1997/04/17 06:43:32 thorpej Exp $ # # Overrides used for NetBSD source tree builds. @@ -8,6 +8,20 @@ CFLAGS+= -Werror CFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include .endif +# Helpers for cross-compiling +HOST_CC?= cc +HOST_CFLAGS?= -O +HOST_COMPILE.c?=${HOST_CC} ${HOST_CFLAGS} ${HOST_CPPFLAGS} -c +HOST_LINK.c?= ${HOST_CC} ${HOST_CFLAGS} ${HOST_CPPFLAGS} ${HOST_LDFLAGS} + +HOST_CPP?= cpp +HOST_CPPFLAGS?= + +HOST_LD?= ld +HOST_LDFLAGS?= + +NM?= nm + .if defined(PARALLEL) # Lex .l: