Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
b=22976 fix bash syntax error
[fs/lustre-release.git]
/
lustre
/
liblustre
/
genlib.sh
diff --git
a/lustre/liblustre/genlib.sh
b/lustre/liblustre/genlib.sh
index
406c235
..
2c644d5
100755
(executable)
--- 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 [ "x${ppc64_CPU}" = "xppc64" ]; then
+ LD="gcc -m64"
+else
+ LD="gcc"
+fi
RANLIB=/usr/bin/ranlib
CWD=`pwd`