From c431c0fd709ebb9953b64fbf028bfde90fe02e4e Mon Sep 17 00:00:00 2001 From: yangsheng Date: Fri, 25 Jul 2008 13:10:06 +0000 Subject: [PATCH] Branch b1_6 b=16437 i=cliff.white, brian Enable the '-m64' flag for powerpc64 patchless build. --- lustre/liblustre/genlib.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lustre/liblustre/genlib.sh b/lustre/liblustre/genlib.sh index 8bbecd8..ef6f81f 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