Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/pcc be more adaptable when choosing the target ...



details:   https://anonhg.NetBSD.org/src/rev/2a079d6de4e8
branches:  trunk
changeset: 751469:2a079d6de4e8
user:      plunky <plunky%NetBSD.org@localhost>
date:      Fri Feb 05 08:58:47 2010 +0000

description:
be more adaptable when choosing the target arch, try to relate
the MACHINE_ARCH to the supported architectures before failing.

diffstat:

 external/bsd/pcc/Makefile.inc |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r 88eb1b256568 -r 2a079d6de4e8 external/bsd/pcc/Makefile.inc
--- a/external/bsd/pcc/Makefile.inc     Fri Feb 05 08:52:25 2010 +0000
+++ b/external/bsd/pcc/Makefile.inc     Fri Feb 05 08:58:47 2010 +0000
@@ -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}"



Home | Main Index | Thread Index | Old Index