This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/22614] New: gcc: error: unrecognized command line option ‘-no-pie’
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 15 Dec 2017 20:37:39 +0000
- Subject: [Bug build/22614] New: gcc: error: unrecognized command line option ‘-no-pie’
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22614
Bug ID: 22614
Summary: gcc: error: unrecognized command line option ‘-no-pie’
Product: glibc
Version: 2.27
Status: NEW
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
CC: carlos at redhat dot com
Target Milestone: ---
When glibc is configured with --enable-static-pie, I got
gcc: error: unrecognized command line option ‘-no-pie’
with GCC 5 during "make check". The problem is
config.make.in:build-pie-default= @libc_cv_pie_default@
ifndef +link
ifeq (yes,$(build-shared))
ifeq (yes,$(build-pie-default))
no-pie-ldflag = -no-pie
+link = $(+link-pie)
We are building glibc with PIE by default, but GCC isn't defaulting
to PIE and -no-pie is only supported on GCC 6 and later.
--
You are receiving this mail because:
You are on the CC list for the bug.