Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79984 - CFLAGS=-Wl,-O1 removes -fPIC and leads to compile failures
Summary: CFLAGS=-Wl,-O1 removes -fPIC and leads to compile failures
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 All
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-29 12:09 UTC by Heinrich Wendel (RETIRED)
Modified: 2005-03-25 14:58 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 Heinrich Wendel (RETIRED) gentoo-dev 2005-01-29 12:09:52 UTC
If you have -Wl,-O1 in your CFLAGS, a lot of application will fail to compile with a simliar error:

libs/fcatomic.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC

That's because binutils/gcc/whatever removes -fPIC from CFLAGS if -Wl,-O1 is given.
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2005-03-25 14:58:06 UTC
Never stick -fPIC into your CFLAGS