LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File seabios.99e3316d5970dbcdac8ce7bb0f89f0986d01c0ce.patch of Package qemu-2.7 (Project home:olh:xen-buildrequires)

From: Kevin O'Connor <kevin@koconnor.net>
Date: Tue, 25 Oct 2016 12:09:41 -0400
Subject: 99e3316d5970dbcdac8ce7bb0f89f0986d01c0ce

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>
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

--- 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,)