[Bug c/25179] New: precedence of -fpie over -fpic
Ralf dot Wildenhues at gmx dot de
gcc-bugzilla@gcc.gnu.org
Wed Nov 30 10:14:00 GMT 2005
When both -fpie and -fpic are given on the command line, -fpie wins,
independent on the order of the arguments. This is unfortunate, as
PIC objects are more widely usable. It would be more useful to either
let the last one win, or let -fpic win over -fpie, from a usability
standpoint: for example, if -fpie were added to overall CFLAGS, and
those were used for both program objects and shared library objects,
current build rules for many packages would most likely still work.
It would've also made this patch unnecessary, as an aside:
http://lists.gnu.org/archive/html/libtool/2005-11/msg00093.html
Observed with gcc-3.4.4 and CVS HEAD as of before the switch to SVN.
Cheers, and keep up the good work,
Ralf
--
Summary: precedence of -fpie over -fpic
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Ralf dot Wildenhues at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25179
More information about the Gcc-bugs
mailing list