[FFmpeg-devel] [PATCH] Add --enable-auto-image-base to linkoptions for Windows DLLs.

Víctor Paesa wzrlpy
Fri May 18 12:52:25 CEST 2007


> Diego Biurrun wrote:
>> On Fri, May 18, 2007 at 04:43:39PM +0800, Zuxy Meng wrote:
>>> --enable-auto-image-base will cause ld to calculate a preferred base
>>> address by hashing the DLL's name, instead of always setting DLL's
>>> base to 0x10000000, therefore the chance of runtime relocation is
>>> reduced. Libtool has already set this by default and cygwin guys
>>> recommend all DLL to be built with this option.
>> No objections from my side if you've tested this to work..
> I'd prefer unrelated linker flags to be passed using separate -Wl options.

If recommended by Cygwin gurus, I'd suggest to use the flag there too :-)
As in attached patch:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.configure.autoimagebase.1.diff
Type: text/x-patch
Size: 494 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070518/5bee6b03/attachment.bin>

More information about the ffmpeg-devel mailing list