Bug 26885 - emerge of rss_glx fails if -fPIC is set in CFLAGS
Bug#: 26885 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: bug-wranglers@gentoo.org Reported By: svein.brostigen@oracle.com
Component: Ebuilds
URL: 
Summary: emerge of rss_glx fails if -fPIC is set in CFLAGS
Keywords:  
Status Whiteboard: 
Opened: 2003-08-18 14:48 0000
Description:   Opened: 2003-08-18 14:48 0000
When trying to emerge x11-misc/rss_glx, the compile phase fails if the -fPIC
flag is set in CFLAGS in /etc/make.conf.

Would it be possible to change the ebuild to remove this specific flag?

------- Comment #1 From SpanKY 2003-08-18 16:43:29 0000 -------
i've filtered it in the 0.7.x ebuilds but i'd suggest you remove -fPIC from
CFLAGS 
since we dont support it 

------- Comment #2 From Svein Erik Brostigen 2003-08-18 17:36:20 0000 -------
Gentoo does not support -fPIC? That is news to me. Is this a new policy started 
just now? 
This flag is necessary for prelinking to work and if we don't support it, we 
need to remove prelink from the Portage tree since it relies on having the 
ebuilds compiled with the Position Indepedent Code flag set so it can 
pre-calculate the load position rather than having the dynamic linker do that 
during startup of the application. 

If we don't support -fPIC then it has some serious implications. 


------- Comment #3 From SpanKY 2003-08-18 17:51:47 0000 -------
we dont support users setting fpic ... we let the packages do it themselves ... 

there was quite a large discussion this sometime ago, i dont have it in my 
mailbox any longer so i cant quote it ... 

but it's why you wont find the 'pic' USE flag in portage anymore