mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
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>
This commit is contained in:
parent
ec11dc41ee
commit
43924d1e53
1
configure
vendored
1
configure
vendored
@ -2038,7 +2038,6 @@ echo "CCAS=$ccas" >> $config_host_mak
|
||||
echo "CPP=$cpp" >> $config_host_mak
|
||||
echo "OBJCOPY=$objcopy" >> $config_host_mak
|
||||
echo "LD=$ld" >> $config_host_mak
|
||||
echo "CFLAGS_NOPIE=$CFLAGS_NOPIE" >> $config_host_mak
|
||||
echo "QEMU_CFLAGS=$QEMU_CFLAGS" >> $config_host_mak
|
||||
echo "QEMU_CXXFLAGS=$QEMU_CXXFLAGS" >> $config_host_mak
|
||||
echo "QEMU_OBJCFLAGS=$QEMU_OBJCFLAGS" >> $config_host_mak
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user