From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GaFRu-0004o3-LV for garchives@archives.gentoo.org; Wed, 18 Oct 2006 17:43:27 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9IHfc7J002257; Wed, 18 Oct 2006 17:41:38 GMT Received: from windmuehlgasse.getdesigned.at (chello062178000135.1.11.univie.teleweb.at [62.178.0.135]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9IHfbXK011758 for ; Wed, 18 Oct 2006 17:41:38 GMT Received: (qmail 24896 invoked from network); 18 Oct 2006 21:07:28 +0200 Received: from watson64.local (HELO ?192.168.1.5?) (192.168.1.5) by tuxserver.local with SMTP; 18 Oct 2006 21:07:28 +0200 Message-ID: <4536675E.5070901@getdesigned.at> Date: Wed, 18 Oct 2006 19:41:50 +0200 From: Sebastian Redl User-Agent: Thunderbird 1.5.0.7 (X11/20061009) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] -fPIC - Toolchain broken? References: <45364363.3010601@getdesigned.at> <45364DF8.9000803@gentoo.org> In-Reply-To: <45364DF8.9000803@gentoo.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: c7e03704-da76-4824-bb98-bf541cc46f36 X-Archives-Hash: 5f5bbc1de675b913cb0ab84e1e820e93 Simon Stelling wrote: > I didn't look at the code yet, but I guess it has some #ifndef > __OPTIMIZED__. __OPTIMIZED__ is set by gcc with -O2 and above. I guess > if you switch back to your -O3 CFLAGS it will compile. Worked with -O3. You know, they say optimization can cause problems ... ;-) Anyway, just so I understand: the function is inline/static (don't know which of these causes the problem) which causes compareRanges to be exported, but not compiled position-independently. The linker, seeing that, fails. But with -O>1, it somehow doesn't actually export the function or something like that, and thus it works? Sebsatian Redl -- gentoo-amd64@gentoo.org mailing list