X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fliblustre%2Fgenlib.sh;h=ef6f81f281dd82f0cd7284ef71090090a074510e;hb=8bad9152e693742a3a7dde6392ca7b8497955921;hp=4f11a998a53afe9135b31aab0fb761beafdc64bf;hpb=5d002d9299c1822454d981dc9f7f532fdc2b350e;p=fs%2Flustre-release.git diff --git a/lustre/liblustre/genlib.sh b/lustre/liblustre/genlib.sh index 4f11a99..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` @@ -24,6 +29,7 @@ LND_LIBS=$3 PTHREAD_LIBS=$4 QUOTA_LIBS=$5 CAP_LIBS=$6 +ZLIB=$7 if [ ! -f $SYSIO/lib/libsysio.a ]; then echo "ERROR: $SYSIO/lib/libsysio.a dosen't exist" @@ -105,7 +111,7 @@ OS=`uname` if test x$OS = xAIX; then $LD -shared -o $CWD/liblustre.so $ALL_OBJS -lpthread -Xlinker -bnoipath ../../libsyscall.so else -$LD -shared -nostdlib -o $CWD/liblustre.so $ALL_OBJS $CAP_LIBS $PTHREAD_LIBS +$LD -shared -nostdlib -o $CWD/liblustre.so $ALL_OBJS $CAP_LIBS $PTHREAD_LIBS $ZLIB fi rm -rf $sysio_tmp