summaryrefslogtreecommitdiffstats
path: root/purgatory
diff options
context:
space:
mode:
authorKairui Song <kasong@redhat.com>2019-01-28 18:50:40 +0800
committerSimon Horman <horms@verge.net.au>2019-02-05 15:20:31 +0100
commitc493af72ac796e8ab3f3f4299205bd402dcee861 (patch)
tree07ba6c74bdaa011f0b98adad91f62627d5642e36 /purgatory
parenta98b4da4fd4f1c7ad9a47ade17f377b833e5c9ae (diff)
downloadkexec-tools-c493af72ac796e8ab3f3f4299205bd402dcee861.tar.gz
purgatory: Use standalond CFLAGS
There has been a lot of workarounds for purgatory disabling many specified CFLAGS that will break purgatory. It will be better to not let the CFLAGS used to compile purgatory honor the CFLAGS from environment variables. So we will have stable CFLAGS for purgatory. If anyone still wants to change purgatory CFLAGS, PURGATORY_EXTRA_CFLAGS is still honored. Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory')
-rw-r--r--purgatory/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/purgatory/Makefile b/purgatory/Makefile
index 49ce80a6..2dd6c476 100644
--- a/purgatory/Makefile
+++ b/purgatory/Makefile
@@ -45,7 +45,7 @@ purgatory/sha256.o: $(srcdir)/util_lib/sha256.c
$(COMPILE.c) -o $@ $^
$(PURGATORY): CC=$(TARGET_CC)
-$(PURGATORY): CFLAGS+=$(PURGATORY_EXTRA_CFLAGS) \
+$(PURGATORY): CFLAGS=$(PURGATORY_EXTRA_CFLAGS) \
$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
-Os -fno-builtin -ffreestanding \
-fno-zero-initialized-in-bss \