Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-amd64
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-amd64@g.o
From: Simon Stelling <blubb@g.o>
Subject: Re: First Impressions
Date: Wed, 27 Sep 2006 17:35:33 +0200
Daniel Iliev wrote:
> So, both flags let gcc produce PIC for libs and programs and none of
> them lets gcc produce PIC for libs only? The next flag described in the
> man page is -fpie, which makes PIC for programs only. Something is wrong
> and don't know how to find the right explanation.

The problem is that -fPIC is a code-generating flag, i.e. it applies to 
the .o object files built. The compiler can't work out whether that 
object is used in a program or a shared library, so it can't know 
whether using PIC is a good idea or not.

-- 
Kind Regards,

Simon Stelling
Gentoo/AMD64 developer
-- 
gentoo-amd64@g.o mailing list


Replies:
Re: First Impressions
-- Daniel Iliev
References:
First Impressions
-- Daniel Iliev
Re: First Impressions
-- Christoph Mende
Re: First Impressions
-- Daniel Iliev
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: First Impressions
Next by thread:
Re: First Impressions
Previous by date:
Re: First Impressions
Next by date:
Re: First Impressions


Updated Jun 17, 2009

Summary: Archive of the gentoo-amd64 mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.