|
From: | Howard Chu |
Subject: | Re: [FYI] Cleanup of linux pass_all |
Date: | Wed, 15 Sep 2004 13:18:11 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040714 |
Alexandre Oliva wrote:
if there was only a good way to test for PIC ....
The only reasonable way I can think of is to get the linker to try and link stuff. If it fails, we print a warning message and proceed to building a static-only version of the library. And let's just hope modern linkers won't silently create corrupt binaries.
This makes the most sense I've heard so far. libtool does far too much work to try and protect programmers from their mistakes, which consequently makes libtool big and clunky and (IMO) just annoys the programmers. I would like to see a libtool that just assumes the programmer knows what she's doing; skip all the pre-emptive checks and just run the damn linker. If it fails, it should just stop dead (unless some other command-line option is provided, like "--retry-because-I'm-a-moron-and-don't-know-how-to-link-on-my-own-development-platform")
-- -- 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] |