summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc/Makefile.bsd-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/gcc/Makefile.bsd-wrapper')
-rw-r--r--gnu/usr.bin/gcc/Makefile.bsd-wrapper17
1 files changed, 13 insertions, 4 deletions
diff --git a/gnu/usr.bin/gcc/Makefile.bsd-wrapper b/gnu/usr.bin/gcc/Makefile.bsd-wrapper
index 057a0831787..6898af2bc0c 100644
--- a/gnu/usr.bin/gcc/Makefile.bsd-wrapper
+++ b/gnu/usr.bin/gcc/Makefile.bsd-wrapper
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.18 1996/10/12 21:30:12 niklas Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.19 1996/10/18 11:52:26 deraadt Exp $
MAN= cccp.1 gcc.1 cp/g++.1 f/g77.1
MLINKS+= gcc.1 cc.1
@@ -11,6 +11,16 @@ CLEANFILES= .gdbinit cp/.gdbinit *.info* bi-parser.c bi-parser.h \
c-parse.c c-parse.h c-parse.y cexp.c cp/parse.c cp/parse.h \
objc-parse.c objc-parse.y f/.gdbinit f/*.info*
+.if ${MACHINE} == "arc" || ${MACHINE} == "pmax"
+M_ARCH= mips64el
+.elif ${MACHINE} == "laguna"
+M_ARCH= mips64
+.else
+M_ARCH= ${MACHINE_ARCH}
+.endif
+
+GCCARCH= ${M_ARCH}-unknown-openbsd`uname -r`
+
all: config.status
${MAKE} ${GNUCFLAGS} BISON=yacc LDFLAGS=${LDSTATIC} \
build_infodir=. all doc
@@ -20,11 +30,10 @@ all: config.status
config: .FORCE
-rm -f config.cache
/bin/sh ${.CURDIR}/configure --with-gnu-as --with-gnu-ld \
- --prefix=/usr --gxx-include=${GPP_INC_DIR}
-
+ --prefix=/usr --gxx-include=${GPP_INC_DIR} ${GCCARCH}
config.status:
/bin/sh ${.CURDIR}/configure --with-gnu-as --with-gnu-ld \
- --prefix=/usr --gxx-include=${GPP_INC_DIR}
+ --prefix=/usr --gxx-include=${GPP_INC_DIR} ${GCCARCH}
install: maninstall
${MAKE} ${GNUCFLAGS} prefix=${DESTDIR}/usr \