From mint-bounce@lists.fishpool.fi Thu Jul 1 04:04:07 2010 To: =?UTF-8?Q?Vincent_Rivi=C3=A8re?= Subject: Re: [MiNT] Problems linking lib that uses the constructor =?UTF-8?Q?=5F=5Fattribute?= MIME-Version: 1.0 Date: Thu, 01 Jul 2010 10:01:40 +0200 From: m0n0 Cc: Reply-To: ole@monochrom.net In-Reply-To: <4C2BD466.60202@freesbee.fr> References: <4C2BD466.60202@freesbee.fr> Message-ID: <0ec61e46d4c65404a97aff015d065d36-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUBFBDBTXF5bVkYBWkF+CTpUX1hYSEIDXFpZ-webmailer2@server02.webmailer.hosteurope.de> X-Sender: ole@monochrom.net User-Agent: Host Europe Webmailer/2.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 X-HE-Access: Yes X-bounce-key: webpack.hosteurope.de;ole@monochrom.net;1277971300;e67d5189; X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: ole@monochrom.net Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: 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