Source-Changes-HG archive

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

[src/trunk]: src/share/mk Since SHLIB_MAJOR may be set even in a MKPIC=no sit...



details:   https://anonhg.NetBSD.org/src/rev/1e1956f554f0
branches:  trunk
changeset: 515280:1e1956f554f0
user:      tv <tv%NetBSD.org@localhost>
date:      Fri Sep 21 15:25:49 2001 +0000

description:
Since SHLIB_MAJOR may be set even in a MKPIC=no situation, make sure that
print-shlib-* targets only print stuff if MKPIC=yes.

diffstat:

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

diffs (34 lines):

diff -r 272d25a31d24 -r 1e1956f554f0 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk       Fri Sep 21 15:16:09 2001 +0000
+++ b/share/mk/bsd.lib.mk       Fri Sep 21 15:25:49 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.lib.mk,v 1.184 2001/09/21 15:16:09 tv Exp $
+#      $NetBSD: bsd.lib.mk,v 1.185 2001/09/21 15:25:49 tv Exp $
 #      @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
 
 .if !target(__initialized__)
@@ -36,21 +36,21 @@
 .endif
 
 print-shlib-major:
-.if defined(SHLIB_MAJOR)
+.if defined(SHLIB_MAJOR) && ${MKPIC} != "no"
        @echo ${SHLIB_MAJOR}
 .else
        @false
 .endif
 
 print-shlib-minor:
-.if defined(SHLIB_MINOR)
+.if defined(SHLIB_MINOR) && ${MKPIC} != "no"
        @echo ${SHLIB_MINOR}
 .else
        @false
 .endif
 
 print-shlib-teeny:
-.if defined(SHLIB_TEENY)
+.if defined(SHLIB_TEENY) && ${MKPIC} != "no"
        @echo ${SHLIB_TEENY}
 .else
        @false



Home | Main Index | Thread Index | Old Index