On Sun, Mar 15, 2009 at 07:33:36PM +0900, Paul Wise wrote:
> Hey,
> 
> I'm still investigating the ranlib problem, however, Ron Lee gave me
> some help with this one and it turns out this is wrong:
> 
> i586-mingw32msvc-gcc -Os -Wl,--file-alignment,512 -Werror -L. -lpluginapi 
> sm_cleanboot.c -shared -o sm_cleanboot.dll
> 
> Because -L needs to point at the nsis lib dir instead of the work dir.

Actually, I used -L. on purpose, but it shouldn't have "leaked" to the example
that I gave you.

> Because the -l needs to go after the input source file.

Yuck.  This seems to be it, thanks.

(Note the ranlib problem still remains, though)

> Also, -Werror is considered harmful with stuff being compiled by distros.

Well, in this case it's my own code, and prefer the extra burden over having
the occasional runtime error that turns out to be much harder to debug.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to