public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Profile 17 and -fPIC
@ 2017-12-05  0:52 Adam Carter
  2017-12-05  3:08 ` Walter Dnes
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Carter @ 2017-12-05  0:52 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 620 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] Profile 17 and -fPIC
  2017-12-05  0:52 [gentoo-user] Profile 17 and -fPIC Adam Carter
@ 2017-12-05  3:08 ` Walter Dnes
  0 siblings, 0 replies; 2+ messages in thread
From: Walter Dnes @ 2017-12-05  3:08 UTC (permalink / raw
  To: gentoo-user

On Tue, Dec 05, 2017 at 11:52:24AM +1100, Adam Carter wrote
> 
> Is there a downside to adding -fPIC to CFLAGs? It seems to allow
> everything to build and the system is working.

  It'll slow down some programs/libraries.  I wonder if you also need to
enable "USE="pic"...

[d531][waltdnes][~] grep -i ":pic - d" /usr/portage/profiles/use.local.desc 
app-arch/gzip:pic - disable optimized assembly code that is not PIC friendly
dev-util/electron:pic - Disable optimized assembly code that is not PIC friendly
games-emulation/yabause:pic - disable optimized assembly code that is not PIC friendly
games-fps/duke3d:pic - disable optimized assembly code that is not PIC friendly
media-libs/mesa:pic - disable optimized assembly code that is not PIC friendly
media-libs/x264:pic - disable optimized assembly code that is not PIC friendly
media-libs/x265:pic - Disable optimized assembly code that is not PIC friendly
media-libs/xvid:pic - disable optimized assembly code that is not PIC friendly
media-video/transcode:pic - disable optimized assembly code that is not PIC friendly
www-client/chromium:pic - Disable optimized assembly code that is not PIC friendly

...and also...

[d531][waltdnes][~] grep -i ":pic - f" /usr/portage/profiles/use.local.desc 
app-benchmarks/ramspeed:pic - Force shared libraries to be built as PIC (this is slower)
app-emulation/open-vm-tools:pic - Force shared libraries to be built as PIC
gnome-base/orbit:pic - Force libname-server-2 to be built as PIC; needed on hardened systems
media-libs/libpostproc:pic - Force shared libraries to be built as PIC (this is slower).
media-video/ffmpeg:pic - Force shared libraries to be built as PIC (this is slower)
media-video/libav:pic - Force shared libraries to be built as PIC (this is slower).

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-05  3:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-05  0:52 [gentoo-user] Profile 17 and -fPIC Adam Carter
2017-12-05  3:08 ` Walter Dnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox