Add some extra flags for the x86-64 port. Disable -O in sys.mk
(which is where all ports set it); there seem to be some lurking optimization bugs for the x86-64.
This commit is contained in:
parent
d1d73371a6
commit
644b748282
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.own.mk,v 1.163 2001/06/18 17:04:45 simonb Exp $
|
||||
# $NetBSD: bsd.own.mk,v 1.164 2001/06/19 01:37:44 fvdl Exp $
|
||||
|
||||
.if !defined(_BSD_OWN_MK_)
|
||||
_BSD_OWN_MK_=1
|
||||
|
@ -89,7 +89,8 @@ NOPIC?=1
|
|||
.endif
|
||||
|
||||
# The sparc64 port is incomplete.
|
||||
.if ${MACHINE_ARCH} == "sparc64"
|
||||
# Profiling and linting is also off on the x86_64 port at the moment.
|
||||
.if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "x86_64"
|
||||
NOPROFILE=1
|
||||
NOLINT=1
|
||||
.endif
|
||||
|
@ -105,6 +106,7 @@ NOLINT=1
|
|||
${MACHINE_ARCH} == "powerpc" || \
|
||||
${MACHINE_ARCH} == "sparc" || \
|
||||
${MACHINE_ARCH} == "sparc64" || \
|
||||
${MACHINE_ARCH} == "x86_64" || \
|
||||
${MACHINE_ARCH} == "i386" || \
|
||||
${MACHINE} == "next68k" || \
|
||||
${MACHINE} == "sun3" || \
|
||||
|
@ -116,6 +118,10 @@ OBJECT_FMT?=ELF
|
|||
OBJECT_FMT?=a.out
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "x86_64"
|
||||
CFLAGS+=-Wno-format -fno-builtin
|
||||
.endif
|
||||
|
||||
# Location of the file that contains the major and minor numbers of the
|
||||
# version of a shared library. If this file exists a shared library
|
||||
# will be built by <bsd.lib.mk>.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: sys.mk,v 1.58 2000/08/22 17:38:49 bjh21 Exp $
|
||||
# $NetBSD: sys.mk,v 1.59 2001/06/19 01:37:44 fvdl Exp $
|
||||
# @(#)sys.mk 8.2 (Berkeley) 3/21/94
|
||||
|
||||
unix?= We run NetBSD.
|
||||
|
@ -28,6 +28,8 @@ CC?= cc
|
|||
${MACHINE_ARCH} == "sparc" || \
|
||||
${MACHINE_ARCH} == "vax"
|
||||
DBG?= -O2
|
||||
.elif ${MACHINE_ARCH} == "x86_64"
|
||||
DBG?=
|
||||
.else
|
||||
DBG?= -O
|
||||
.endif
|
||||
|
|
Loading…
Reference in New Issue