Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: Gentoo Users List <gentoo-user@l.g.o>
Subject: [gentoo-user] Profile 17.0, PIE, USE="pic", C(XX)FLAGS "-fpic", "-fPIC"?
Date: Tue, 09 Jan 2018 05:34:58
Message-Id: 20180109053448.GB13745@waltdnes.org
If you execute...

grep ":pic " /usr/portage/profiles/use.local.desc

...you'll get multiple listings that mention...
- disable optimized assembly code that is not PIC friendly
- Force shared libraries to be built as PIC (this is slower)

  Question: does PIE imply pic/PIC?  I.e does a PIE build also require
USE="pic" and CFLAGS/CXXFLAGS="-fpic -fPIC"?  If so, is there a way to
disable PIE in profile 17.0?

-- 
Walter Dnes <waltdnes@××××××××.org>
I don't run "desktop environments"; I run useful applications

Replies

Subject Author
[gentoo-user] Re: Profile 17.0, PIE, USE="pic", C(XX)FLAGS "-fpic", "-fPIC"? Martin Vaeth <martin@×××××.de>