summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-08-31 10:55:00 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-08-31 10:55:00 +0000
commita86f8490acc65aac7ee7958b66431e52e8801f70 (patch)
tree0da02f41cd90322630a374a3e6703a2b6552775f /Makefile
parent988d31e27a7396037ce40fab98d21372aca3b88d (diff)
Magic to make sparc64 cross-tools not bomb in the first 5 minutes
of building cross-tools.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9024d9836ce..e91d3cb670b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.69 2001/06/26 18:00:16 brad Exp $
+# $OpenBSD: Makefile,v 1.70 2001/08/31 10:54:59 art Exp $
#
# For more information on building in tricky environments, please see
@@ -114,11 +114,16 @@ CROSSENV= AR=${CROSSDIR}/usr/bin/ar AS=${CROSSDIR}/usr/bin/as \
HOSTCC=cc
CROSSPATH= ${PATH}:${CROSSDIR}/usr/bin
+.if (${TARGET} == "sparc64")
+CROSSENV+= CPPFLAGS=-D__arch64__
+CPPFLAGS=-D__arch64__
+.endif
+
cross-helpers:
@-mkdir -p ${CROSSDIR}
echo _MACHINE_ARCH | \
cat ${.CURDIR}/sys/arch/${TARGET}/include/param.h - | \
- ${CPP} -E -I${.CURDIR}/sys/arch | \
+ ${CPP} ${CPPFLAGS} -E -I${.CURDIR}/sys/arch | \
sed -n '$$p' >${CROSSDIR}/TARGET_ARCH
eval `grep '^osr=' sys/conf/newvers.sh`; \
sed "s/\$$/-unknown-openbsd$$osr/" ${CROSSDIR}/TARGET_ARCH > \
@@ -154,7 +159,8 @@ cross-includes: cross-dirs
${MAKE} DESTDIR=${CROSSDIR} includes
.if ${TARGET} == "powerpc" || ${TARGET} == "alpha" || ${TARGET} == "arc" || \
- ${TARGET} == "pmax" || ${TARGET} == "wgrisc" || ${TARGET} == "hppa"
+ ${TARGET} == "pmax" || ${TARGET} == "wgrisc" || ${TARGET} == "hppa" || \
+ ${TARGET} == "sparc64"
cross-binutils: cross-binutils-new
.else
cross-binutils: cross-binutils-old