summaryrefslogtreecommitdiffstats
path: root/util_lib
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2006-10-06 12:27:58 +0900
committerSimon Horman <horms@verge.net.au>2006-10-06 12:46:17 +0900
commite90343c521b68237c17ea4e4ed376c4a726f0789 (patch)
treeb679a515de2cae1d16d41f39b855499dc35d48c9 /util_lib
parentba686313d496ee25db69803ef7e5bfb1e07eb841 (diff)
downloadkexec-tools-e90343c521b68237c17ea4e4ed376c4a726f0789.tar.gz
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/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/util_lib/Makefile b/util_lib/Makefile
index 84679a1c..75cde25e 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)