libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool, -fPIC and .so libraries


From: Gary V. Vaughan
Subject: Re: libtool, -fPIC and .so libraries
Date: Thu, 16 Nov 2000 02:19:31 +0000
User-agent: Mutt/1.2.5i

On Mon, Nov 13, 2000 at 08:33:46PM -0800, Michel LESPINASSE wrote:
> 
> * libtool's insistance on using -fPIC for shared objects is sometimes
> annoying. For the mpeg decoder on x86, -fPIC is about a 10% speed
> hit... we do not expect to have many simultaneous mpeg decoders
> running, so we would rather build the plugin without -fPIC, which is
> totally legal. But libtool seems to be built over the assumption that
> noone wants to build .so files without -fPIC...
> 
> This is all with libtool 1.3.3

CVS libtool (soon to be libtool-1.4, and is quite stable) has this
option:

--with-pic              try to use only PIC/non-PIC objects [default=use both]

You could upgrade your libtool and specify --without-pic.

Cheers,
        Gary.
-- 
  ___              _   ___   __              _         mailto: address@hidden
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       address@hidden 
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]