At Wed, 03 Mar 2010 12:46:45 -0500, "Greg A. Woods" <woods%planix.ca@localhost> wrote: Subject: linking i386 MONOLITHIC w/LOCKDEBUG fails two days in a row now.... > > I've been encountering the following link errors trying to build a > MONOLITHIC i386 kernel _with_ LOCKDEBUG defined for almost two days now: OK, so ALL, with "options LOCKDEBUG" compiles and links cleanly now, and copying lock_stubs.o from compile/ALL to compile/MONOLITHIC gave me a clue as to why the latter was not building. I had previously (in netbsd-4 and before) always set CFLAGS+=LOCKDEBUG in mk.conf (when building for any MP-capable platform), however with proper config(8) "options" support for LOCKDEBUG, this is no longer sufficient, and it didn't seem to work for .S files either. Actually turning on "options LOCKDEBUG" in my kernel config solves this particular mystery of mine. -- Greg A. Woods Planix, Inc. <woods%planix.com@localhost> +1 416 218 0099 http://www.planix.com/
Attachment:
pgpW60KPHSQjK.pgp
Description: PGP signature