[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Problems linking lib that uses the constructor __attribute
Am Donnerstag, den 01.07.2010, 01:33 +0200 schrieb Vincent Rivière
> I told this should not be used, except in very special cases... like
this
> one :-)
> But his method is inefficient, because it will really include all the
> contents of the library into your final executable, including useless .o
> files. This will work, but it will also highly increase the size of your
> executable.
I would run into other problems when using --whole-archive. The build
system does something like this:
--whole-archive libnsfb libsdl libgem libldg libgem --no-whole-archive
which does not work, because of doubly defined references.... I have to
adjust the sdl.pc to make it work..., the line than looks like:
--whole-archive -lnsfb --no-whole-archive -lsdl -lgem -lldg -lgem
Greets,
Ole