From f0a7e18ff601aa35a6b229272861258ca5f371c0 Mon Sep 17 00:00:00 2001 From: eeh Date: Wed, 27 Mar 2002 05:40:54 +0000 Subject: [PATCH] Use the medium low model for sparc64 programs that don't 2GB of data segment. --- share/mk/bsd.prog.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 666fcd8ecf6d..011ab33c1390 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prog.mk,v 1.154 2002/02/11 21:15:01 mycroft Exp $ +# $NetBSD: bsd.prog.mk,v 1.155 2002/03/27 05:40:54 eeh Exp $ # @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94 .include @@ -12,6 +12,9 @@ clean: cleanprog CPPFLAGS+= ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include} CXXFLAGS+= ${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include/g++} CFLAGS+= ${COPTS} +.if ${MACHINE_ARCH} == "sparc64" +CFLAGS+= -mcmodel=medlow +.endif # ELF platforms depend on crtbegin.o and crtend.o .if ${OBJECT_FMT} == "ELF"