How could -ffreestanding slip through here. Required because libpayload is not
[coreboot.git] / payloads / libpayload / Makefile
index b862f8da0f8159bfeb3bfadfd6306bb256162a40..1c3a461d2d876fae202042801b16dcb61f3c0d49 100644 (file)
@@ -91,7 +91,7 @@ $(CC) $(1) -S -xc /dev/null -o "$$TMP", $(1), $(2))
 STACKPROTECT += $(call cc-option, -fno-stack-protector,)
 
 # TODO: Re-add -Os as soon as we find out why it caused problems.
-CFLAGS := -Wall -Werror $(STACKPROTECT) -nostdinc $(INCLUDES)
+CFLAGS := -Wall -Werror $(STACKPROTECT) -nostdinc $(INCLUDES) -ffreestanding
 
 all: lib