From 1d45d57e4064dba04fb19d7f65001e5958c24ae0 Mon Sep 17 00:00:00 2001 From: Arun Thomas Date: Tue, 26 Jul 2011 08:54:32 +0200 Subject: [PATCH] Add MKEMBED option --- share/mk/bsd.own.mk | 2 +- share/mk/sys.mk | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 08fe4f3d8..55814d340 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -772,7 +772,7 @@ _MKVARS.no= \ MKUNPRIVED MKUPDATE MKX11 MKZFS #MINIX-specific vars _MKVARS.no+= \ - MKIMAGEONLY + MKIMAGEONLY MKEMBED .for var in ${_MKVARS.no} ${var}?=no .endfor diff --git a/share/mk/sys.mk b/share/mk/sys.mk index 5466a7920..147abb19c 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -236,6 +236,12 @@ AR?= aal .elif !empty(CC:M*gcc) || !empty(CC:M*clang) || !empty(CC:M*pcc) COMPILER_TYPE=gnu AR?= ar + +.if ${MKEMBED} == "yes" +DBG= -Os +CFLAGS+= -DNDEBUG=1 +.endif + .endif # Set NBSD_LIBC to either "yes" or "no". -- 2.44.0