Source-Changes-HG archive

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

[src/netbsd-1-5]: src/share/mk Pullup 1.172->1.173 of bsd.lib.mk



details:   https://anonhg.NetBSD.org/src/rev/d8e0ecb0d1fe
branches:  netbsd-1-5
changeset: 489595:d8e0ecb0d1fe
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Sep 29 19:27:00 2000 +0000

description:
Pullup 1.172->1.173 of bsd.lib.mk
Approved by: thorpej

PR/10556: Veego: Shared library support was broken if shlib_version file
was not present.

diffstat:

 share/mk/bsd.lib.mk |  46 ++++++++++++++++++++++++++++------------------
 1 files changed, 28 insertions(+), 18 deletions(-)

diffs (87 lines):

diff -r 3d3ed309a00d -r d8e0ecb0d1fe share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk       Fri Sep 29 12:33:52 2000 +0000
+++ b/share/mk/bsd.lib.mk       Fri Sep 29 19:27:00 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.lib.mk,v 1.169.2.5 2000/08/22 06:27:13 mrg Exp $
+#      $NetBSD: bsd.lib.mk,v 1.169.2.6 2000/09/29 19:27:00 skrll Exp $
 #      @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
 
 .if !target(__initialized__)
@@ -20,12 +20,6 @@
 SHLIB_MAJOR != . ${SHLIB_VERSION_FILE} ; echo $$major
 SHLIB_MINOR != . ${SHLIB_VERSION_FILE} ; echo $$minor
 SHLIB_TEENY != . ${SHLIB_VERSION_FILE} ; echo $$teeny
-.if !empty(SHLIB_TEENY)
-SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}.${SHLIB_TEENY}
-.else
-SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}
-.endif
-
 
 # Check for higher installed library versions.
 .if !defined(NOCHECKVER) && !defined(NOCHECKVER_${LIB}) && \
@@ -34,28 +28,44 @@
        @(cd ${.CURDIR} && \
                sh ${BSDSRCDIR}/lib/checkver -v ${SHLIB_VERSION_FILE} \
                    -d ${DESTDIR}${LIBDIR} ${LIB})
-.else
+.endif
+.endif
+
+.if !target(checkver)
 checkver:
 .endif
+
 print-shlib-major:
+.if defined(SHLIB_MAJOR)
        @echo ${SHLIB_MAJOR}
+.else
+       @false
+.endif
 
 print-shlib-minor:
+.if defined(SHLIB_MINOR)
        @echo ${SHLIB_MINOR}
+.else
+       @false
+.endif
 
 print-shlib-teeny:
+.if defined(SHLIB_TEENY)
        @echo ${SHLIB_TEENY}
 .else
-checkver:
-
-print-shlib-major:
        @false
+.endif
 
-print-shlib-minor:
-       @false
-
-print-shlib-teeny:
-       @false
+.if defined(SHLIB_MAJOR) && !empty(SHLIB_MAJOR)
+.if defined(SHLIB_MINOR) && !empty(SHLIB_MINOR)
+.if defined(SHLIB_TEENY) && !empty(SHLIB_TEENY)
+SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}.${SHLIB_TEENY}
+.else
+SHLIB_FULLVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR}
+.endif
+.else
+SHLIB_FULLVERSION=${SHLIB_MAJOR}
+.endif
 .endif
 
 # add additional suffixes not exported.
@@ -73,8 +83,8 @@
 # OBJECT_FMT:          currently either "ELF" or "a.out", from <bsd.own.mk>
 # SHLIB_SOVERSION:     version number to be compiled into a shared library
 #                      via -soname. Usualy ${SHLIB_MAJOR} on ELF.
-#                      NetBSD/pmax used to use ${SHLIB_MAJOR}.${SHLIB_MINOR}
-#                      [.${SHLIB_TEENY}]
+#                      NetBSD/pmax used to use ${SHLIB_MAJOR}[.${SHLIB_MINOR}
+#                      [.${SHLIB_TEENY}]]
 # SHLIB_SHFLAGS:       Flags to tell ${LD} to emit shared library.
 #                      with ELF, also set shared-lib version for ld.so.
 # SHLIB_LDSTARTFILE:   support .o file, call C++ file-level constructors



Home | Main Index | Thread Index | Old Index