From ae78f701ed7ce811fcd404ced985ed7ecedcfd80 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 7 May 2011 03:48:48 -0500 Subject: [PATCH] worlds/amd64/SS4200: avoid overriding CFLAGS when building boot2 --- worlds/amd64/SS4200/config/src.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/worlds/amd64/SS4200/config/src.conf b/worlds/amd64/SS4200/config/src.conf index db89b0b..30f7390 100644 --- a/worlds/amd64/SS4200/config/src.conf +++ b/worlds/amd64/SS4200/config/src.conf @@ -1,7 +1,11 @@ # Compilation knobs -CFLAGS+=-O2 -pipe -COPTFLAGS+=-O2 -pipe +# Boot2 may build too large if -Os is overridden +.if !${.CURDIR:M*/sys/boot/i386/boot2} + CFLAGS+=-O2 -pipe + COPTFLAGS+=-O2 -pipe +.endif + CPUTYPE?=nocona # Kernel knobs -- 2.42.0