aboutsummaryrefslogtreecommitdiff
path: root/pc-bios
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-08-08 10:57:35 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2016-08-09 22:57:36 +0200
commitb0e8f5cadcce7c1e2047e1e2c96f827a26171f58 (patch)
tree6c7b3e2ec883868a226dd4200a99c054403f4251 /pc-bios
parenta9c87304b76d1d61687d585516abb4c6e0ae809e (diff)
downloadqemu-b0e8f5cadcce7c1e2047e1e2c96f827a26171f58.zip
qemu-b0e8f5cadcce7c1e2047e1e2c96f827a26171f58.tar.gz
qemu-b0e8f5cadcce7c1e2047e1e2c96f827a26171f58.tar.bz2
optionrom: add -fno-stack-protector
This is required by OpenBSD. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'pc-bios')
-rw-r--r--pc-bios/optionrom/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile
index 6bab490..9c018ea 100644
--- a/pc-bios/optionrom/Makefile
+++ b/pc-bios/optionrom/Makefile
@@ -11,6 +11,7 @@ $(call set-vpath, $(SRC_PATH)/pc-bios/optionrom)
# Drop -fstack-protector and the like
QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS)) $(CFLAGS_NOPIE) -ffreestanding
+QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -fno-stack-protector)
QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -m16)
ifeq ($(filter -m16, $(QEMU_CFLAGS)),)
# Attempt to work around compilers that lack -m16 (GCC <= 4.8, clang <= ??)