Subject: using MKSTATICLIB part 2
To: None <tech-toolchain@netbsd.org>
From: Simon Burge <simonb@NetBSD.org>
List: tech-toolchain
Date: 09/09/2006 13:57:17
Oh, one more point...  Using MKSTATICLIB=no also causes failures
for programs that use MKPRIVATELIB libraries.  Is the following
OK to commit as well?

Cheers,
Simon.
--

Index: share/mk/bsd.lib.mk
===================================================================
RCS file: /cvsroot/src/share/mk/bsd.lib.mk,v
retrieving revision 1.268
diff -d -p -u -r1.268 bsd.lib.mk
--- share/mk/bsd.lib.mk 22 Jul 2006 05:29:03 -0000      1.268
+++ share/mk/bsd.lib.mk 9 Sep 2006 03:50:39 -0000
@@ -330,6 +330,10 @@ FFLAGS+=   ${FOPTS}
        ${OBJCOPY} -x ${.TARGET}
 
 .if defined(LIB)                                                       # {
+.if ${MKPRIVATELIB} != "no"
+MKSTATICLIB=yes        # override for local libraries
+.endif
+
 .if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \
        || ${MKLINKLIB} != "no") && ${MKSTATICLIB} != "no"
 _LIBS=lib${LIB}.a