Fix the real problem, Makefile.host was included before the HOST_MKDEP

setup so it prevented correct CPPFLAGS from being used.
This commit is contained in:
christos 2013-03-16 02:51:25 +00:00
parent 76512a9d94
commit 64e869fe87

View File

@ -1,4 +1,6 @@
# $NetBSD: Makefile,v 1.9 2012/12/02 12:39:55 apb Exp $
# $NetBSD: Makefile,v 1.10 2013/03/16 02:51:25 christos Exp $
.include <bsd.own.mk>
HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-install
HOST_SRCDIR= usr.bin/xinstall
@ -9,7 +11,6 @@ CPPFLAGS+= -DTARGET_STRIP=\"${STRIP}\"
# from ${TOOLDIR}.
NOCOMPATLIB=
.include "${.CURDIR}/../Makefile.host"
# Use uninstalled copy of host-mkdep
HOST_MKDEP_OBJ!= cd ${.CURDIR}/../host-mkdep && ${PRINTOBJDIR}
@ -21,5 +22,8 @@ COMPATLIB_UNINSTALLED= yes
COMPATOBJ!= cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR}
.-include "${COMPATOBJ}/defs.mk"
.include "${.CURDIR}/../Makefile.host"
# Use uninstalled copy of the install program
INSTALL= ./xinstall