NetBSD Problem Report #7007

Received: (qmail 583 invoked from network); 15 Feb 1999 11:14:44 -0000
Message-Id: <199902151115.MAA26669@jdolecek.per4mance.cz>
Date: Mon, 15 Feb 1999 12:15:04 +0100 (MET)
From: Jaromir Dolecek <dolecek@ics.muni.cz>
Reply-To: dolecek@ics.muni.cz
To: gnats-bugs@gnats.netbsd.org
Subject: pkglibtool strips -l,-L flags from compile line
X-Send-Pr-Version: 3.95

>Number:         7007
>Category:       pkg
>Synopsis:       pkglibtool strips -l,-L flags from compile line
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 15 03:20:01 +0000 1999
>Closed-Date:    Mon Feb 15 14:44:19 +0000 1999
>Last-Modified:  Mon Feb 15 14:45:26 +0000 1999
>Originator:     Jaromir Dolecek
>Release:        NetBSD-19981207 or so
>Organization:
	ICS MU, Brno, Czech Republic
>Environment:

System: NetBSD jdolecek.per4mance.cz 1.3I NetBSD 1.3I (JDOLECEK) #0: Sun Jan 31 21:02:09 MET 1999 dolecek@jdolecek.per4mance.cz:/home/dolecek/tmp/kern-19990116/src/sys/arch/i386/compile/JDOLECEK i386


>Description:
	While linking shared library via pkglibtool, all -l and -L
	flags are stripped.  That's problem for inter-library
	dependencies, when the currently linked library (say ``xx'')
	uses code from other libraries (say ``yy'').

	Applications have to be linked against ``yy'' as well and
	need to list appropriate -lyy _before_ -lxx. That's just
	not that comfortable :)
>How-To-Repeat:
>Fix:
	Add $dependency_libs into archive_cmds in netbsd entry
	in ltconfig -- for a.out, it should be something like:

	archive_cmds='$LD -Bshareable -o $lib$libobjs$dependency_libs'

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: tv 
State-Changed-When: Mon Feb 15 06:44:19 PST 1999 
State-Changed-Why:  
This is intentional.  Since interlibrary dependencies are meaningless on 
NetBSD a.out platforms, we cannot guarantee uniformity (which is pkglibtool's 
reason for existence) if we add this. 
>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.