|
From: | Howard Chu |
Subject: | Re: Including static libraries in shared libraries with libtool. |
Date: | Sun, 26 Sep 2004 16:43:57 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040714 |
Sam Varshavchik wrote:
Howard Chu writes:One more time, shouting into the senseless void...If these so-called "convenience" libraries are meant to be linked in whole, they should not be ar archives at all. You should just link them directly into a relocatable object file:ld -r -o <convenience.obj> *.o
And do we know that all platforms have a program called "ld", then implements the "-r" option with the given semantics?
Do we know that all platforms have a "compiler" that takes "source files" as input and produces "object files" as output? Do we know that all platforms treat these "object files" as intermediate files that then must be magically combined into a usable "executable" (or "shared library") file?
On any platform where these conditions are false, libtool has no function anyway. Foregoing this approach due to supposed portability concerns is totally baseless.
-- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support
[Prev in Thread] | Current Thread | [Next in Thread] |