diff options
author | Paolo Bonzini | 2022-03-29 13:01:58 +0200 |
---|---|---|
committer | Paolo Bonzini | 2022-05-12 12:07:05 +0200 |
commit | 43924d1e53fd77c63b6f995556545e12f9fb11b6 (patch) | |
tree | 4d59620384952841ad276d2dd5bb20515c479b69 /pc-bios | |
parent | Merge tag 'pull-misc-2022-05-11' of git://repo.or.cz/qemu/armbru into staging (diff) | |
download | qemu-43924d1e53fd77c63b6f995556545e12f9fb11b6.tar.gz qemu-43924d1e53fd77c63b6f995556545e12f9fb11b6.tar.xz qemu-43924d1e53fd77c63b6f995556545e12f9fb11b6.zip |
pc-bios/optionrom: detect -fno-pie
Do not rely on the detection that was done in the configure script,
since in the future we may want to cross-compile this file.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'pc-bios')
-rw-r--r-- | pc-bios/optionrom/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile index f1ef898073..8de5a9461c 100644 --- a/pc-bios/optionrom/Makefile +++ b/pc-bios/optionrom/Makefile @@ -22,7 +22,8 @@ override CFLAGS += $(call cc-option, -fcf-protection=none) override CPPFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d override CFLAGS += $(filter -W%, $(QEMU_CFLAGS)) -override CFLAGS += $(CFLAGS_NOPIE) -ffreestanding -I$(TOPSRC_DIR)/include +override CFLAGS += $(call cc-option, -fno-pie) +override CFLAGS += -ffreestanding -I$(TOPSRC_DIR)/include override CFLAGS += $(call cc-option, -fno-stack-protector) override CFLAGS += $(call cc-option, -m16) |