runtime config for x86 linux adds incorrect gcc -nopie flag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned | ||
sbcl (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
SBCL fails to build when gcc is configure to generate Position Independent Binaries. The runtime configs for SBCL in sbcl/src/
# Hardened GCC enables PIE by default
ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e nopie),)
CFLAGS += -fno-pie
LINKFLAGS += -nopie
LDFLAGS += -nopie
endif
However, upstream gcc has standardized on the -no-pie flag (note embedded hyphen):
as of upstream commit:
https:/
This causes SBCL to FTBFS in Ubuntu 16.10 on amd64 where -pie is enabled by default in gcc.
Changed in sbcl: | |
status: | New → Fix Released |
Patch to fix the -no-pie arguments.