NetBSD Problem Report #384

From gnats  Tue Aug  2 21:22:22 1994
Received: from forte (forte.mathematik.uni-Bremen.de [134.102.232.1]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id VAA04518 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 2 Aug 1994 21:22:19 -0700
Message-Id: <199408030423.GAA23472@forte>
Date: Wed, 3 Aug 1994 06:23:01 +0200
From: thomas@mathematik.uni-Bremen.de
Reply-To: thomas@mathematik.uni-Bremen.de
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: How about adding -x to the shared library build rule?
X-Send-Pr-Version: 3.2

>Number:         384
>Category:       lib
>Synopsis:       How about adding -x to the shared library build rule?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 02 21:35:01 +0000 1994
>Closed-Date:    Tue Aug 09 13:05:43 +0000 1994
>Last-Modified:  
>Originator:     Thomas Eberhardt
>Release:        
>Organization:
CeVis, University of Bremen, Germany
>Environment:

System: NetBSD ed209 1.0_BETA NetBSD 1.0_BETA (ED209) #0: Tue Aug 2 21:03:55 MET DST 1994 thomas@ed209:/usr/src/sys/arch/i386/compile/ED209 i386

Machine: i386
>Description:
	ld leaves a lot of local symbol information (things as
	"bt_open.so.LC1") in the shared libraries that I think isn't needed
	anymore after the shared library is built.  Since the PIC object files
	are already processed with "-x" after compiling, how about also adding
	a "-x" to the shared library build rule in bsd.lib.mk?
	I'm running with all libraries built in this way for several months
	now.
>How-To-Repeat:

>Fix:
*** ./share/mk/bsd.lib.mk-	Thu Jul  7 10:22:09 1994
--- ./share/mk/bsd.lib.mk	Sun Jul 17 18:22:30 1994
***************
*** 109,115 ****
  lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}_pic.a ${DPADD}
  	@echo building shared ${LIB} library \(version ${SHLIB_MAJOR}.${SHLIB_MINOR}\)
  	@rm -f lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
! 	$(LD) -Bshareable -Bforcearchive \
  	    -o lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} lib${LIB}_pic.a ${LDADD}

  llib-l${LIB}.ln: ${SRCS}
--- 109,115 ----
  lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}_pic.a ${DPADD}
  	@echo building shared ${LIB} library \(version ${SHLIB_MAJOR}.${SHLIB_MINOR}\)
  	@rm -f lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
! 	$(LD) -x -Bshareable -Bforcearchive \
  	    -o lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} lib${LIB}_pic.a ${LDADD}

  llib-l${LIB}.ln: ${SRCS}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pk 
State-Changed-When: Tue Aug 9 06:05:43 PDT 1994 
State-Changed-Why:  
Fixed as prescribed... 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.