This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/87938] New: libgnat.a not compiled with -fno-PIC
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Nov 2018 11:38:37 +0000
- Subject: [Bug ada/87938] New: libgnat.a not compiled with -fno-PIC
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87938
Bug ID: 87938
Summary: libgnat.a not compiled with -fno-PIC
Product: gcc
Version: 8.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
We build two versions of libgnat.a: libgnat.a and libgnat_pic.a.
The libgnat_pic.a is compiled with -fpic (more precisely, with
PICFLAG_FOR_TARGET).
But libgnat.a is compiled with whatever the default is, so if gcc defaults to
-pie -fPIE, then libgnat.a is compiled with -fPIE. My guess is that we want to
build libgnat.a with -fno-PIE/-fno-pie.