Module Name: src
Committed By: joerg
Date: Sat Feb 27 19:25:08 UTC 2016
Modified Files:
src/sys/arch/sparc/stand: Makefile.buildboot
Log Message:
When building with clang, optimise for minimal size and skip frame
pointers when possible.
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/sparc/stand/Makefile.buildboot
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc/stand/Makefile.buildboot
diff -u src/sys/arch/sparc/stand/Makefile.buildboot:1.29 src/sys/arch/sparc/stand/Makefile.buildboot:1.30
--- src/sys/arch/sparc/stand/Makefile.buildboot:1.29 Mon Aug 12 16:34:05 2013
+++ src/sys/arch/sparc/stand/Makefile.buildboot Sat Feb 27 19:25:08 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.buildboot,v 1.29 2013/08/12 16:34:05 joerg Exp $
+# $NetBSD: Makefile.buildboot,v 1.30 2016/02/27 19:25:08 joerg Exp $
#
# This file is for the sparc `boot' and `bootxx' only; it does not
# currently play well on a 64-bit system.
@@ -35,7 +35,8 @@ CPPFLAGS+= -D_STANDALONE -DSUN4 -DSUN4C
CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
CPPFLAGS+= -I${.CURDIR}/../../../../../common/include
-CFLAGS= -Os -fno-unwind-tables
+CFLAGS= ${${ACTIVE_CC} == "clang":? -Oz -fomit-frame-pointer : -Os } -fno-unwind-tables
+AFLAGS+= ${${ACTIVE_CC} == "clang":? -Oz :}
CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -ffreestanding
### find out what to use for libkern