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 <[EMAIL PROTECTED]>
---
 Makefile |    4 ++--
 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 $@
-- 
1.6.0.2.711.gf1ba4


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to