For clang, optimize both ramdisk and miniroot for minimal size and skip

frame pointers where possible.
This commit is contained in:
joerg 2016-02-27 18:52:51 +00:00
parent dda31211fa
commit a939e992b2
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,8 @@
# $NetBSD: Makefile.inc,v 1.21 2014/08/04 13:09:42 martin Exp $
# $NetBSD: Makefile.inc,v 1.22 2016/02/27 18:52:51 joerg Exp $
IMAGESIZE= 9216k
DBG= -Os -fno-unwind-tables
DBG= ${${ACTIVE_CC} == "clang":? -Oz -fomit-frame-pointer : -Os } -fno-unwind-tables
MAKEFS_FLAGS= -o density=4k
IMAGEENDIAN= be
MAKEDEVTARGETS= all ipty

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.41 2009/06/09 11:06:09 he Exp $
# $NetBSD: Makefile,v 1.42 2016/02/27 18:52:51 joerg Exp $
#
# ramdisk.fs is the microroot filesystem intended for use with
# the INSTALL kernel. It provides just enough tools to extract the
@ -13,7 +13,7 @@ IMAGE= ramdisk.fs
IMAGESIZE= 1800b
WARNS= 1
DBG= -Os
DBG= ${${ACTIVE_CC} == "clang":? -Oz -fomit-frame-pointer -fno-unwind-tables : -Os }
CRUNCHBIN= ramdiskbin
LISTS= ${.CURDIR}/list