This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/22614] New: gcc: error: unrecognized command line option ‘-no-pie’


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]