Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk PR/6257: Izumi Tsutsui: bsd.lib.mk should set targe...



details:   https://anonhg.NetBSD.org/src/rev/e3a02f2b41d2
branches:  trunk
changeset: 546131:e3a02f2b41d2
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 20 21:57:17 2003 +0000

description:
PR/6257: Izumi Tsutsui: bsd.lib.mk should set target only if LIB is defined.

diffstat:

 share/mk/bsd.lib.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r dd01607b6b46 -r e3a02f2b41d2 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk       Sun Apr 20 21:41:52 2003 +0000
+++ b/share/mk/bsd.lib.mk       Sun Apr 20 21:57:17 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.lib.mk,v 1.214 2003/04/11 22:40:31 thorpej Exp $
+#      $NetBSD: bsd.lib.mk,v 1.215 2003/04/20 21:57:17 christos Exp $
 #      @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
 
 .include <bsd.init.mk>
@@ -309,6 +309,7 @@
        @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
        @rm -f ${.TARGET}.o
 
+.if defined(LIB)
 .if ${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \
        || ${MKLINKLIB} != "no"
 _LIBS=lib${LIB}.a
@@ -348,6 +349,7 @@
 .if ${MKLINT} != "no" && ${MKLINKLIB} != "no" && !empty(LOBJS)
 _LIBS+=llib-l${LIB}.ln
 .endif
+.endif
 
 .if ${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \
        || ${MKLINKLIB} != "no"



Home | Main Index | Thread Index | Old Index