From 4db6968b18f3a85e1a2e769074751e62c2c3cc8a Mon Sep 17 00:00:00 2001 From: yangsheng Date: Wed, 22 Oct 2008 06:12:46 +0000 Subject: [PATCH] Branch HEAD b=16437 i=cliff.white, brian Enable the '-m64' flag for powerpc64 patchless build. --- build/autoconf/lustre-build-linux.m4 | 5 +++++ lustre/liblustre/genlib.sh | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/build/autoconf/lustre-build-linux.m4 b/build/autoconf/lustre-build-linux.m4 index f434e0c..71ee36c 100644 --- a/build/autoconf/lustre-build-linux.m4 +++ b/build/autoconf/lustre-build-linux.m4 @@ -462,6 +462,11 @@ AC_DEFUN([LB_PROG_LINUX], 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.]) diff --git a/lustre/liblustre/genlib.sh b/lustre/liblustre/genlib.sh index 406c235..4cbef25 100755 --- a/lustre/liblustre/genlib.sh +++ b/lustre/liblustre/genlib.sh @@ -13,7 +13,12 @@ set -e 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` -- 1.8.3.1