The fixed CPU architecture in the Makefile will make failure on ppc64le.
authorDavid Zeng <zengxhsh@cn.ibm.com>
Fri, 20 May 2016 09:41:14 +0000 (17:41 +0800)
committerDavid Zeng <zengxhsh@cn.ibm.com>
Fri, 20 May 2016 09:41:14 +0000 (17:41 +0800)
Makefile

index b6ebf2fef010e6545ffe81e28d8df5785da8c597..ee9089906cdd2d4d4cc4852a114fa32e65f94f44 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ SOURCE :=     $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/crc/*.c)) \
 
 ifdef CONFIG_LIBHDFS
   HDFSFLAGS= -I $(JAVA_HOME)/include -I $(JAVA_HOME)/include/linux -I $(FIO_LIBHDFS_INCLUDE)
-  HDFSLIB= -Wl,-rpath $(JAVA_HOME)/jre/lib/amd64/server -L$(JAVA_HOME)/jre/lib/amd64/server -ljvm $(FIO_LIBHDFS_LIB)/libhdfs.a
+  HDFSLIB= -Wl,-rpath $(JAVA_HOME)/jre/lib/`uname -m`/server -L$(JAVA_HOME)/jre/lib/`uname -m`/server -ljvm $(FIO_LIBHDFS_LIB)/libhdfs.a
   CFLAGS += $(HDFSFLAGS)
   SOURCE += engines/libhdfs.c
 endif