Displaying 2 results from an estimated 2 matches for "sp_test".
Did you mean:
sd_test
2011 Mar 29
1
[PATCH] Fix gpxe compilation when gcc is patched to compile by default with -fPIE -Wl, -pie
...eping | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/gpxe/src/Makefile.housekeeping b/gpxe/src/Makefile.housekeeping
index 1f5e115..d49416e 100644
--- a/gpxe/src/Makefile.housekeeping
+++ b/gpxe/src/Makefile.housekeeping
@@ -134,6 +134,16 @@ SP_FLAGS := $(shell $(SP_TEST) && $(ECHO) '-fno-stack-protector')
CFLAGS += $(SP_FLAGS)
endif
+# Some widespread patched versions of gcc include -fPIE -Wl,-pie by
+# default. gpxe does not support pie code in get_cpuinfo.
+#
+ifeq ($(CCTYPE),gcc)
+PIE_TEST = $(CC) -fno-PIE -nopie -x c -c /dev/null \
+ -o /d...
2011 Dec 09
1
[PATCH] Fix compilation when gcc is patched to default to -fPIE -Wl, -pie
...ping | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/gpxe/src/Makefile.housekeeping b/gpxe/src/Makefile.housekeeping
index 1f5e115..d351a52 100644
--- a/gpxe/src/Makefile.housekeeping
+++ b/gpxe/src/Makefile.housekeeping
@@ -134,6 +134,17 @@ SP_FLAGS := $(shell $(SP_TEST) && $(ECHO) '-fno-stack-protector')
CFLAGS += $(SP_FLAGS)
endif
+# Some widespread patched versions of gcc include -fPIE -Wl,-pie by
+# default. Note that gcc will exit *successfully* if it fails to
+# recognise an option that starts with "no", so we have to test for...