From 62ee2774455891082e7774a671559af598f7d2a5 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 16 Apr 2011 22:45:23 +0000 Subject: [PATCH] Need --sysroot=/ otherwise ld does not find crt0.o and friends. --- share/mk/bsd.own.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 2620a7a42e8b..7bec1e7e44c0 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.657 2011/04/16 21:41:24 christos Exp $ +# $NetBSD: bsd.own.mk,v 1.658 2011/04/16 22:45:23 christos Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -210,6 +210,9 @@ OBJC= false .if !defined(HOSTPROG) && !defined(HOSTLIB) && defined(DESTDIR) CPPFLAGGS+= --sysroot=${DESTDIR} LDFLAGS+= --sysroot=${DESTDIR} +.else +CPPFLAGGS+= --sysroot=/ +LDFLAGS+= --sysroot=/ .endif .endif # EXTERNAL_TOOLCHAIN # }