Module Name: src
Committed By: plunky
Date: Fri Feb 5 08:58:47 UTC 2010
Modified Files:
src/external/bsd/pcc: Makefile.inc
Log Message:
be more adaptable when choosing the target arch, try to relate
the MACHINE_ARCH to the supported architectures before failing.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/pcc/Makefile.inc
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/Makefile.inc
diff -u src/external/bsd/pcc/Makefile.inc:1.4 src/external/bsd/pcc/Makefile.inc:1.5
--- src/external/bsd/pcc/Makefile.inc:1.4 Fri Feb 5 08:52:25 2010
+++ src/external/bsd/pcc/Makefile.inc Fri Feb 5 08:58:47 2010
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.4 2010/02/05 08:52:25 plunky Exp $
+# $NetBSD: Makefile.inc,v 1.5 2010/02/05 08:58:47 plunky Exp $
PCC_DIR:=${.PARSEDIR}
PCC_DIST=${PCC_DIR}/dist/pcc
@@ -6,14 +6,14 @@
TARGOS = netbsd
-.if ${MACHINE_ARCH} == "i386"
-TARGMACH = i386
-.elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
+.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
TARGMACH = mips
-.elif ${MACHINE_ARCH} == "vax"
-TARGMACH = vax
.else
-ERROR!= echo "ERROR: ${MACHINE_ARCH} not yet supported - write code!" >&2;echo
+TARGMACH = ${MACHINE_ARCH}
+.endif
+
+.if !exists(${PCC_DIST}/arch/${TARGMACH})
+ERROR!= echo "ERROR: ${TARGMACH} not yet supported - write code!" >&2;echo
.endif
VERSSTR = PACKAGE_STRING " [" PACKAGE_CHECKOUT "] for ${HOST_OSTYPE}"