mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
without deferring the test execution of CC. This avoids extra executions of CC every time CFLAGS is expanded. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
22 lines
525 B
Makefile
22 lines
525 B
Makefile
# Firmware is a 32-bit target
|
|
override XEN_TARGET_ARCH = x86_32
|
|
|
|
# User-supplied CFLAGS are not useful here.
|
|
CFLAGS =
|
|
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
ifneq ($(debug),y)
|
|
CFLAGS += -DNDEBUG
|
|
endif
|
|
|
|
CFLAGS += -Werror
|
|
|
|
# Disable PIE/SSP if GCC supports them. They can break us.
|
|
$(call cc-option-add,CFLAGS,CC,-nopie)
|
|
$(call cc-option-add,CFLAGS,CC,-fno-stack-protector)
|
|
$(call cc-option-add,CFLAGS,CC,-fno-stack-protector-all)
|
|
|
|
# Extra CFLAGS suitable for an embedded type of environment.
|
|
CFLAGS += -fno-builtin -msoft-float
|