diff options
author | Simon Horman <horms@verge.net.au> | 2006-10-06 12:27:58 +0900 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2006-10-06 12:46:17 +0900 |
commit | e90343c521b68237c17ea4e4ed376c4a726f0789 (patch) | |
tree | b679a515de2cae1d16d41f39b855499dc35d48c9 /util_lib | |
parent | ba686313d496ee25db69803ef7e5bfb1e07eb841 (diff) |
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 <horms@verge.net.au>
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) |