aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2008-10-29 21:09:33 +0000
committerEric B Munson <ebmunson@us.ibm.com>2008-10-30 10:35:28 +0000
commit73e957fb2bd5c870e924ce38cec0ff39a91dab5e (patch)
tree57e8c798d20ded193d5f95dbe6a7451e9801a37f /Makefile
parente58d943fedb0e7857de9ede36c04ed7084cc248d (diff)
downloadlibhugetlbfs-73e957fb2bd5c870e924ce38cec0ff39a91dab5e.tar.gz
hugectl: fix up Makefile to correctly pass LIB32/LIB64 to hugectl
It seems we are passing the LIB32/LIB64 defines to the link phase and not the compile phase for hugectl. This means that it will not set the library path correctly. Signed-off-by: Andy Whitcroft <apw@shadowen.org> Acked-by: Adam Litke <agl@us.ibm.com> Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b9e2540..4554154 100644
--- a/Makefile
+++ b/Makefile
@@ -297,12 +297,12 @@ obj64/%.s: %.c
$(BIN_OBJ_DIR)/%.o: %.c
@$(VECHO) CCHOST $@
@mkdir -p $(BIN_OBJ_DIR)
- $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LIBPATHS) -o $@ -c $<
$(BIN_OBJ_DIR)/hugectl: $(BIN_OBJ_DIR)/hugectl.o
@$(VECHO) LDHOST $@
mkdir -p $(BIN_OBJ_DIR)
- $(CC) $(CPPFLAGS) $(CFLAGS) $(LIBPATHS) -o $@ $^
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
$(BIN_OBJ_DIR)/hugeedit: $(BIN_OBJ_DIR)/hugeedit.o
@$(VECHO) LDHOST $@