[Top][All Lists]

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

Re: [Fwd: Re: [Lesstif-discuss] Linking with -prebind on Mac OS X]

From: Peter O'Gorman
Subject: Re: [Fwd: Re: [Lesstif-discuss] Linking with -prebind on Mac OS X]
Date: Wed, 06 Oct 2004 08:06:27 +0900
User-agent: Mozilla Thunderbird 0.7.3 (Macintosh/20040803)

Danny Backx wrote:

On Mon, 2004-10-04 at 17:47, Dave Williss wrote:

I don't know how to modify the autoconfig to do this, but on Mac OS X, I'd like for it to pass the -prebind parameter to libtool when creating the shared library. Programs load much faster if all the shared libraries are "prebound" at link time. Does anybody understand how the configure script works well enough to make this change?

It all depends on your OS version and the version of GNU libtool that the pacakge uses. Firstly though, if you use Mac OS X 10.3 you should make sure that you have 10.3.4 or later, the dynamic linker was improved to such an extent as to make prebinding unnecessary.

Anyway, if you are using libtool-1.5 or later you just need to make sure that you have the necessary environment variables set.

LD_PREBIND=1 (the equivalent of using the -prebind flag)

Although some older versions of libtool and the current development version will pass flags like -prebind through to cc when linking, the entire 1.5.x series will remove the flag, you'd need to preserve it with -Wl, or -Xlinker, for example LDFLAGS="Wl,-prebind".

Hope this helps,
Peter O'Gorman -

reply via email to

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