no-pie FLAG needed for ubuntu yakety yak (16.10)
Bug #1633559 reported by
Cyrus Harmon
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Apparently some platforms must was "nopie" in their CC dumpspecs as that's what we currently check for. Without breaking that, I've added what ubuntu 16.10 needs to build for its no-pie invocation:
--- a/src/runtime/
+++ b/src/runtime/
@@ -57,6 +57,12 @@ LINKFLAGS += -nopie
LDFLAGS += -nopie
endif
+ifneq ($(shell $(CC) -dumpspecs 2>/dev/null | grep -e no-pie),)
+CFLAGS += -fno-pie
+LINKFLAGS += -no-pie
+LDFLAGS += -no-pie
+endif
+
# Nothing to do for after-grovel-
.PHONY: after-grovel-
after-
To post a comment you must log in.
Please consider to move the fix out of the x86-64 case into more general land. This is relevant for all gcc based builds on debian stretch for example (arm, arm64, powerpc, x86-32, x86-64)