From e90343c521b68237c17ea4e4ed376c4a726f0789 Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Fri, 6 Oct 2006 12:27:58 +0900 Subject: build-util_lib-optimisation-flags [BUILD] Make sure sha256.c is compiled without optimisation sha256.c needs to be compiled without optimization, else purgatory fails to execute (on ia64 at least). By placing -O0 after $(CFLAGS), which is provided by the prevailing environment, it overrides any other -O flags provided. Signed-Off-By: Simon Horman --- util_lib/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'util_lib') diff --git a/util_lib/Makefile b/util_lib/Makefile index 84679a1..75cde25 100644 --- a/util_lib/Makefile +++ b/util_lib/Makefile @@ -13,9 +13,14 @@ $(UTIL_LIB_DEPS): $(OBJDIR)/%.d: %.c $(MKDIR) -p $(@D) $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -M $< | sed -e 's|$(patsubst %.d,%.o,$(@F))|$(patsubst %.d,%.o,$(@))|' > $@ +# sha256.c needs to be compiled without optimization, else +# purgatory fails to execute (on ia64 at least). +# By placing -O0 after $(CFLAGS), which is provided by +# the prevailing environment, it overrides any other -O flags +# provided. $(UTIL_LIB_OBJS): $(OBJDIR)/%.o: %.c $(OBJDIR)/%.d $(MKDIR) -p $(@D) - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -O0 -c -o $@ $< $(UTIL_LIB): $(UTIL_LIB_OBJS) $(MKDIR) -p $(@D) -- cgit