Subject: Re: Alternative PLIST expansion of libtool archives
To: Johnny C. Lam <>
From: Julio M. Merino Vidal <>
List: tech-pkg
Date: 09/09/2004 18:47:13
Ok; just tested it and seems to work fine for me.  However... could it be
extended so that 'make print-PLIST' does not show any of the library names,
only the .la?


On Wed, 8 Sep 2004 22:26:58 +0000
"Johnny C. Lam" <> wrote:

> I've attached a patch that contains an alternative implementation of
> the highly excellent idea that Todd Vierling put forth about having
> automatically expand libtool archive entries in PLIST into
> the shared and static libraries that they represent.  The differences
> between this implementation and the one that was committed are:
>    (1) It uses the existing _PLIST_AWK_SCRIPT framework.
> This is either good or bad depending on how one feels about the
> _PLIST_AWK_SCRIPT framework :)
>    (2) It's not required that the libtool archives be explicitly
>        listed in LIBTOOL_LA_FILES in the package Makefiles.
> The awk script fragment looks for files that end in ".la" and checks
> that they're libtool archives before trying to extract the library
> names from inside them.  I think that not needing to list files in
> LIBTOOL_LA_FILES is a very good thing since we would only need to
> record the files in the usual place (in the PLIST) instead of duplicating
> the information in two separate places.
> The patch adds a toggle, LIBTOOLIZE_PLIST, that defaults to "no".
> After the 2004Q3 branch, we can fix up all the PLISTs and default
> LIBTOOLIZE_PLIST to "yes" in a single commit.
> Please review and comment.
> 	Thanks!
> 	-- Johnny Lam <>

Julio M. Merino Vidal <>
The NetBSD Project -