[Bug build/22614] New: gcc: error: unrecognized command line option ‘-no-pie’
hjl.tools at gmail dot com
sourceware-bugzilla@sourceware.org
Sat Dec 16 02:07:00 GMT 2017
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.
More information about the Glibc-bugs
mailing list