|
From: Brian D. <br...@de...> - 2007-04-26 15:41:57
|
fiveight wrote:
> Thanks for your help! I modified the specs file, I delete the
> "%{shared|mdll: -e _DllMainCRTStartup@12 --enable-auto-image-base}" option
> in the "*link:" section. After doing this, I can link my project normally. I
> can understand what your warning means, I will add "-e
> _DllMainCRTStartup@12 --enable-auto-image-base" option manually in the
> command line when I build a win32 dll. Am I right? Or any good suggestion
> you can give me?
There should be no need to modify the specs file. Options given later
on the command line override earilier ones, so just use
-Wl,--image-base=x or -Wl,--disable-auto-image-base and so on. The ones
in the specs file will be the first on the command line to the linker so
you should be able to override them at will.
Brian
|