diff options
Diffstat (limited to 'util_lib')
-rw-r--r-- | util_lib/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
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) |