Drop explicit medlow model and default to -O2 for sparc64.

This commit is contained in:
martin 2003-09-19 16:32:10 +00:00
parent 55acdca8c5
commit 57b44eed3f
2 changed files with 3 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.prog.mk,v 1.187 2003/09/14 22:36:55 lukem Exp $
# $NetBSD: bsd.prog.mk,v 1.188 2003/09/19 16:32:10 martin Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.ifndef HOSTPROG
@ -28,9 +28,6 @@ LDSTATIC+= ${LDSTATIC.${PROG}}
CPPFLAGS+= ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include}
CXXFLAGS+= ${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEMXX} ${DESTDIR}/usr/include/g++}
CFLAGS+= ${COPTS}
.if ${MACHINE_ARCH} == "sparc64"
CFLAGS+= -mcmodel=medlow
.endif
# ELF platforms depend on crti.o, crtbegin.o, crtend.o, and crtn.o
.if ${OBJECT_FMT} == "ELF"

View File

@ -1,4 +1,4 @@
# $NetBSD: sys.mk,v 1.77 2003/07/27 19:08:03 uwe Exp $
# $NetBSD: sys.mk,v 1.78 2003/09/19 16:32:12 martin Exp $
# @(#)sys.mk 8.2 (Berkeley) 3/21/94
unix?= We run NetBSD.
@ -30,12 +30,11 @@ CC?= cc
${MACHINE_ARCH} == "powerpc" || \
${MACHINE_ARCH} == "sh5el" || ${MACHINE_ARCH} == "sh5eb" || \
${MACHINE_ARCH} == "sparc" || \
${MACHINE_ARCH} == "sparc64" || \
${MACHINE_ARCH} == "vax"
DBG?= -O2
.elif ${MACHINE_ARCH} == "hppa"
DBG?=
.elif ${MACHINE_ARCH} == "sparc64"
DBG?= -O -ffixed-g4 #Hack for embedany memory model compatibility
.else
DBG?= -O
.endif