]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commitdiff
build: Add -fno-pie to the gcc flags when available
authorKevin O'Connor <kevin@koconnor.net>
Tue, 25 Oct 2016 16:09:41 +0000 (12:09 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 26 Oct 2016 14:11:46 +0000 (10:11 -0400)
Reported-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Makefile

index 1916ecf632a928a8810107acc7b89099e1e8554c..3b94ee0e49878bd2bd7581cd15d1c50063fc2def 100644 (file)
--- 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,)