Subject: Re: Libtool --preserve-dup-deps
To: Martin J. Laubach <email@example.com>
From: Johnny C. Lam <firstname.lastname@example.org>
Date: 07/14/2003 14:56:01
On Sun, Jul 13, 2003 at 02:50:42PM +0000, Martin J. Laubach wrote:
> I'm wondering what the --preserve-dup-deps switch that we
> explicitely patch into libtool is for.
> While compiling gnucash, this has produced a command line that
> was literally several screen pages, full of "-lm -lm -lm -lm -lm
> -lintl -lm -lm -lm -lm -lintl -lm -lm -lm -lm -lm -lm -lm...",
> which even fails to link, probably because of the length of the
> command line.
I think we should make --preserve-dup-deps at least collapse the same
library listed consecutively with a single instance of that library,
i.e., "-lm -lm -lm ... -lm" would become just "-lm". This would still
solve the problem that --preserve-dup-deps is meant to address.
Patches _not_ forthcoming, but please take this idea and run with it.
-- Johnny Lam <email@example.com>