aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-10-25 12:09:41 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-10-26 10:11:46 -0400
commit99e3316d5970dbcdac8ce7bb0f89f0986d01c0ce (patch)
tree3ceb9c1d990d3fea94f71fe0c7b5ba1237d86a19
parentcb75c910a2c380e29099a0ae90b03de1689236c5 (diff)
downloadseabios-99e3316d5970dbcdac8ce7bb0f89f0986d01c0ce.tar.gz
seabios-99e3316d5970dbcdac8ce7bb0f89f0986d01c0ce.tar.xz
seabios-99e3316d5970dbcdac8ce7bb0f89f0986d01c0ce.zip
build: Add -fno-pie to the gcc flags when available
Reported-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1916ecf..3b94ee0 100644
--- a/Makefile
+++ b/Makefile
@@ -63,6 +63,7 @@ COMMONCFLAGS := -I$(OUT) -Isrc -Os -MD -g \
-freg-struct-return -ffreestanding -fno-delete-null-pointer-checks \
-ffunction-sections -fdata-sections -fno-common -fno-merge-constants
COMMONCFLAGS += $(call cc-option,$(CC),-nopie,)
+COMMONCFLAGS += $(call cc-option,$(CC),-fno-pie,)
COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
COMMONCFLAGS += $(call cc-option,$(CC),-fstack-check=no,)