* [gentoo-user] Profile 17.0, PIE, USE="pic", C(XX)FLAGS "-fpic", "-fPIC"?
@ 2018-01-09 5:34 Walter Dnes
2018-01-09 20:28 ` [gentoo-user] " Martin Vaeth
0 siblings, 1 reply; 2+ messages in thread
From: Walter Dnes @ 2018-01-09 5:34 UTC (permalink / raw
To: Gentoo Users List
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@waltdnes.org>
I don't run "desktop environments"; I run useful applications
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-user] Re: Profile 17.0, PIE, USE="pic", C(XX)FLAGS "-fpic", "-fPIC"?
2018-01-09 5:34 [gentoo-user] Profile 17.0, PIE, USE="pic", C(XX)FLAGS "-fpic", "-fPIC"? Walter Dnes
@ 2018-01-09 20:28 ` Martin Vaeth
0 siblings, 0 replies; 2+ messages in thread
From: Martin Vaeth @ 2018-01-09 20:28 UTC (permalink / raw
To: gentoo-user
Walter Dnes <waltdnes@waltdnes.org> wrote:
> Question: does PIE imply pic/PIC?
The code is somewhat different, but in principle yes.
> I.e does a PIE build also require USE="pic"
Assembler code which breaks pic will also break pie,
so better do not use that code.
> and CFLAGS/CXXFLAGS="-fpic -fPIC"?
These are usually added for libraries anyway.
They do not belong into your "manual" configuration file.
> If so, is there a way to disable PIE in profile 17.0?
If you want to switch it off for a particular binary,
there are -fno-PIE -no-pie.
Ebuilds should add it automatically if needed.
So far, I only needed it for clisp:
https://bugs.gentoo.org/show_bug.cgi?id=618170
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-09 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-09 5:34 [gentoo-user] Profile 17.0, PIE, USE="pic", C(XX)FLAGS "-fpic", "-fPIC"? Walter Dnes
2018-01-09 20:28 ` [gentoo-user] " Martin Vaeth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox