Subject: Conditional setting of COPTS and distrib
To: None <tech-toolchain@netbsd.org>
From: None <abs@mono.org>
List: tech-toolchain
Date: 09/18/2003 17:47:28
I'm trying to build 1.6_STABLE with specific -march=XXX flags,
but without them being set in the distrib images (which overflows
the image size).
I can almost do it with
.if !defined(DBG) || ${DBG} != "-Os"
[set stuff]
.endif
but that breaks in distrib/i386/floppies/ramdisk-rescuesmall:
- The Makefile sets BOOTMODEL, IMAGE, and IMAGESIZE
- Then includes ../common/Makefile.ramdisk
- That then includes '<bsd.own.mk>', then _later_ sets DBG=-Os
I could make the conditional .if !defined(IMAGESIZE) but
it seems like there should be a cleaner way to do this...
--
David Brownlee -- abs@mono.org