aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--i386/Makefrag.am4
-rw-r--r--x86_64/Makefrag.am4
3 files changed, 8 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index ad38249b..357e8470 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -79,10 +79,6 @@ AM_CFLAGS += \
-fno-stack-protector
endif
-# We do not support or need position-independent
-AM_CFLAGS += \
- -no-pie -fno-PIE -fno-pie -fno-pic
-
# This must be the same size as port names, see e.g. ipc/ipc_entry.c
AM_CFLAGS += -DRDXTREE_KEY_32
diff --git a/i386/Makefrag.am b/i386/Makefrag.am
index 5e7d4740..7a339417 100644
--- a/i386/Makefrag.am
+++ b/i386/Makefrag.am
@@ -170,6 +170,10 @@ gnumach_LINKFLAGS += \
-T '$(srcdir)'/i386/ldscript
endif
+# We do not support or need position-independent
+AM_CFLAGS += \
+ -no-pie -fno-PIE -fno-pie -fno-pic
+
AM_CFLAGS += \
-mno-3dnow \
-mno-mmx \
diff --git a/x86_64/Makefrag.am b/x86_64/Makefrag.am
index 2bbed986..a3a52bf1 100644
--- a/x86_64/Makefrag.am
+++ b/x86_64/Makefrag.am
@@ -236,6 +236,10 @@ gnumach_LINKFLAGS += \
-T '$(srcdir)'/x86_64/ldscript
endif
+# We do not support or need position-independent
+AM_CFLAGS += \
+ -no-pie -fno-PIE -fno-pie -fno-pic
+
AM_CFLAGS += -D_START_MAP=$(_START_MAP) \
-DKERNEL_MAP_BASE=$(KERNEL_MAP_BASE)
AM_CCASFLAGS += -D_START_MAP=$(_START_MAP) \