From owner-freebsd-bugs Mon Nov 25 19:31:17 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA02804 for bugs-outgoing; Mon, 25 Nov 1996 19:31:17 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA02769; Mon, 25 Nov 1996 19:30:50 -0800 (PST) Resent-Date: Mon, 25 Nov 1996 19:30:50 -0800 (PST) Resent-Message-Id: <199611260330.TAA02769@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, gurney_j@efn.org Received: from mail.webspan.net (mail.webspan.net [206.154.70.7]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA02151 for ; Mon, 25 Nov 1996 19:22:13 -0800 (PST) Received: from orion.webspan.net (orion.webspan.net [206.154.70.5]) by mail.webspan.net (8.7.5/8.7.3) with ESMTP id WAA00469 for ; Mon, 25 Nov 1996 22:21:36 -0500 (EST) Received: from orion.webspan.net (localhost [127.0.0.1]) by orion.webspan.net (8.7.5/8.7.3) with ESMTP id WAA19301 for ; Mon, 25 Nov 1996 22:21:36 -0500 (EST) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.18]) by mail.webspan.net (8.7.5/8.7.3) with ESMTP id WAA28253 for ; Mon, 25 Nov 1996 22:05:48 -0500 (EST) Received: from nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA01461 for ; Mon, 25 Nov 1996 19:04:00 -0800 (PST) Received: (from root@localhost) by nike.efn.org (8.8.3/8.8.3) id TAA06775; Mon, 25 Nov 1996 19:03:43 -0800 (PST) Message-Id: <199611260303.TAA06775@nike.efn.org> Date: Mon, 25 Nov 1996 19:03:43 -0800 (PST) From: John-Mark Gurney Reply-To: gurney_j@efn.org To: FreeBSD-gnats@freefall.FreeBSD.org X-Send-Pr-Version: 3.2 Subject: misc/2105: bsd.lib.mk bugs Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 2105 >Category: misc >Synopsis: bsd.lib.mk has problems with STRIP and INTERNALSTATICLIB >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 25 19:30:11 PST 1996 >Last-Modified: >Originator: John-Mark Gurney >Organization: Cu Networking >Release: FreeBSD 2.2-960801-SNAP i386 >Environment: a 2.2-960803-SNAP but with current cvs tree... all patches relative to current >Description: a) if you define INTERNALSTATICLIB, bsd.lib.mk still tries to install it, even though INTERNALLIB doesn't... b) INSTALL doesn't strip dynamic libs upon installing >How-To-Repeat: a) define INTERNALSTATICLIB, and then do a make install, it installs b) install a dynamic library, file dynamic_lib, and see that it isn't stripped >Fix: apply this patch, a is the first hunk, b is the second: Index: bsd.lib.mk =================================================================== RCS file: /usr/cvs/src/share/mk/bsd.lib.mk,v retrieving revision 1.37 diff -c -r1.37 bsd.lib.mk *** bsd.lib.mk 1996/06/29 03:12:48 1.37 --- bsd.lib.mk 1996/11/26 02:57:47 *************** *** 199,205 **** .endif realinstall: beforeinstall ! .if !defined(INTERNALLIB) ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ${INSTALLFLAGS} lib${LIB}.a ${DESTDIR}${LIBDIR} .if !defined(NOPROFILE) --- 199,205 ---- .endif realinstall: beforeinstall ! .if !defined(INTERNALLIB) && !defined(INTERNALSTATICLIB) ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ${INSTALLFLAGS} lib${LIB}.a ${DESTDIR}${LIBDIR} .if !defined(NOPROFILE) *************** *** 209,215 **** .endif .if !defined(NOPIC) .if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR) ! ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ${INSTALLFLAGS} ${SHLINSTALLFLAGS} \ lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ ${DESTDIR}${SHLIBDIR} --- 209,215 ---- .endif .if !defined(NOPIC) .if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR) ! ${INSTALL} ${COPY} ${STRIP} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ${INSTALLFLAGS} ${SHLINSTALLFLAGS} \ lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ ${DESTDIR}${SHLIBDIR} >Audit-Trail: >Unformatted: John-Mark Gurney