Subject: pkg/7007: pkglibtool strips -l,-L flags from compile line
To: None <gnats-bugs@gnats.netbsd.org>
From: Jaromir Dolecek <dolecek@ics.muni.cz>
List: netbsd-bugs
Date: 02/15/1999 12:15:04
>Number:         7007
>Category:       pkg
>Synopsis:       pkglibtool strips -l,-L flags from compile line
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 15 03:20:01 1999
>Last-Modified:
>Originator:     Jaromir Dolecek
>Organization:
	ICS MU, Brno, Czech Republic
>Release:        NetBSD-19981207 or so
>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'

>Audit-Trail:
>Unformatted: