Module Name:    src
Committed By:   maya
Date:           Sat Feb  8 21:16:53 UTC 2020

Modified Files:
        src/share/mk: sys.mk

Log Message:
Don't special case aarch64 and add -fomit-frame-pointer to builds.

This behaviour is probably due to a past behaviour of clang, where it
always emitted frame pointer code.
This is no longer true for clang on netbsd, and I don't think it was true
for GCC.

Meanwhile, this flag bleeds into pkgsrc where it breaks random packages,
requiring workarounds like lang/ruby*-base/hacks.mk.


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/share/mk/sys.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/sys.mk
diff -u src/share/mk/sys.mk:1.142 src/share/mk/sys.mk:1.143
--- src/share/mk/sys.mk:1.142	Wed Jan  8 22:04:24 2020
+++ src/share/mk/sys.mk	Sat Feb  8 21:16:53 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: sys.mk,v 1.142 2020/01/08 22:04:24 christos Exp $
+#	$NetBSD: sys.mk,v 1.143 2020/02/08 21:16:53 maya Exp $
 #	@(#)sys.mk	8.2 (Berkeley) 3/21/94
 #
 # This file contains the basic rules for make(1) and is read first
@@ -33,8 +33,6 @@ DBG?=	-Os -freorder-blocks
 DBG?=	-O2 -fno-reorder-blocks
 .elif ${MACHINE_ARCH} == "coldfire"
 DBG?=	-O1
-.elif !empty(MACHINE_ARCH:Maarch64*)
-DBG?=	-O2 ${"${.TARGET:M*.po}" == "":? -fomit-frame-pointer:}
 .else
 DBG?=	-O2
 .endif

Reply via email to