Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: [gentoo-user] Profile 17 and -fPIC
Date: Tue, 05 Dec 2017 00:52:32
Message-Id: CAC=wYCFWoFbkFzUif0_Wz=cB316WH2Nz63uEhYg-6i6WYcKYiQ@mail.gmail.com
Possibly due to messing around with hardened in the past, i'm finding that
many packages are reporting that they need -fPIC now that i'm on 17.0 (and
gcc 7.2 FWIW). I've added it to CFLAGs, as manually adding to each failed
package via package.env was getting non-trivial.

From the GCC man page it sounds like;
fPIE = make executables position independent, and
fPIC = make everything position independent

Is there a downside to adding -fPIC to CFLAGs? It seems to allow everything
to build and the system is working.

Replies

Subject Author
Re: [gentoo-user] Profile 17 and -fPIC Walter Dnes <waltdnes@××××××××.org>