Module Name:    src
Committed By:   plunky
Date:           Fri Apr 29 08:33:02 UTC 2011

Modified Files:
        src/external/bsd/pcc/libexec/mkext: Makefile

Log Message:
build mkext with the same flags as ccom (lack of -DGCC_COMPAT in
particular, but add -Dos_ and -Dmach_ just in case)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/pcc/libexec/mkext/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/pcc/libexec/mkext/Makefile
diff -u src/external/bsd/pcc/libexec/mkext/Makefile:1.1 src/external/bsd/pcc/libexec/mkext/Makefile:1.2
--- src/external/bsd/pcc/libexec/mkext/Makefile:1.1	Thu Apr 14 09:31:25 2011
+++ src/external/bsd/pcc/libexec/mkext/Makefile	Fri Apr 29 08:33:02 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.1 2011/04/14 09:31:25 plunky Exp $
+#	$NetBSD: Makefile,v 1.2 2011/04/29 08:33:02 plunky Exp $
 
 #
 # this is really part of ccom, but HOSTPROG and PROG don't mix
@@ -6,15 +6,17 @@
 
 .include <bsd.init.mk>
 
-.PATH:	${PCC_DIST}/cc/ccom \
-	${PCC_DIST}/arch/${TARGMACH} \
-	${PCC_DIST}/mip
+.PATH:	${PCC_DIST}/mip \
+	${PCC_DIST}/arch/${TARGMACH}
 
 HOSTPROG=	mkext
 MAN=
 SRCS=		mkext.c table.c common.c
 
 HOST_CPPFLAGS+=	-DMKEXT
+HOST_CPPFLAGS+=	-DGCC_COMPAT
+HOST_CPPFLAGS+=	-Dos_${TARGOS}
+HOST_CPPFLAGS+=	-Dmach_${TARGMACH}
 HOST_CPPFLAGS+=	-I${PCC_DIST}/mip
 HOST_CPPFLAGS+=	-I${PCC_DIST}/arch/${TARGMACH}
 HOST_CPPFLAGS+=	-I${PCC_DIR}/include

Reply via email to