Module Name: src Committed By: christos Date: Sat Apr 16 22:45:23 UTC 2011
Modified Files: src/share/mk: bsd.own.mk Log Message: Need --sysroot=/ otherwise ld does not find crt0.o and friends. To generate a diff of this commit: cvs rdiff -u -r1.657 -r1.658 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.657 src/share/mk/bsd.own.mk:1.658 --- src/share/mk/bsd.own.mk:1.657 Sat Apr 16 17:41:24 2011 +++ src/share/mk/bsd.own.mk Sat Apr 16 18:45:23 2011 @@ -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 @@ .if !defined(HOSTPROG) && !defined(HOSTLIB) && defined(DESTDIR) CPPFLAGGS+= --sysroot=${DESTDIR} LDFLAGS+= --sysroot=${DESTDIR} +.else +CPPFLAGGS+= --sysroot=/ +LDFLAGS+= --sysroot=/ .endif .endif # EXTERNAL_TOOLCHAIN # }