Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541808 - USE flags pic and pie are double
Summary: USE flags pic and pie are double
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-01 15:01 UTC by Thibaud CANALE
Modified: 2015-03-03 03:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thibaud CANALE 2015-03-01 15:01:33 UTC
Hello everyone,

Just an enhancement request, could we please merge the USE flags "pic" and "pie" together?

From what I know and understand, PIC stands for “Position Independent Code” and PIE for “Position Independent Executable”, which mean the same behaviour, based on https://en.wikipedia.org/wiki/Position-independent_code

Maybe those two USE flags have different purposes, but they look like to act as the same, based on gcc(1) for -fPIC and -fPIE descriptions.

Thanks for your support.
Comment 1 SpanKY gentoo-dev 2015-03-03 03:54:22 UTC
they do not mean the same thing.  PIC is typically used to control TEXTRELs in shared libraries on arches (like x86) where the memory overhead is less important than the speed gains.  PIE is used to control whether all executables are PIEs.