This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25179] New: precedence of -fpie over -fpic
- From: "Ralf dot Wildenhues at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2005 10:13:59 -0000
- Subject: [Bug c/25179] New: precedence of -fpie over -fpic
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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