b=16437
i=cliff.white, brian
Enable the '-m64' flag for powerpc64 patchless build.
LB_LINUX_ARCH
LB_LINUX_SYMVERFILE
+#if test $LINUX_ARCH == "powerpc64"; then
+# AC_MSG_WARN([set compiler with -m64])
+# CFLAGS="$CFLAGS -m64"
+# CC="$CC -m64"
+#fi
LB_LINUX_CONFIG([MODULES],[],[
AC_MSG_ERROR([module support is required to build Lustre kernel modules.])
AR=/usr/bin/ar
# see http://osdir.com/ml/gmane.comp.gnu.binutils.bugs/2006-01/msg00016.php
-LD=gcc
+ppc64_CPU=`uname -p`
+if [ ${ppc64_CPU} == "ppc64" ]; then
+ LD="gcc -m64"
+else
+ LD="gcc"
+fi
RANLIB=/usr/bin/ranlib
CWD=`pwd`