Skip to content
Snippets Groups Projects
Commit 4db6968b authored by Yang Sheng's avatar Yang Sheng
Browse files

Branch HEAD

b=16437
i=cliff.white, brian

Enable the '-m64' flag for powerpc64 patchless build.
parent 91bc6592
No related branches found
No related tags found
No related merge requests found
......@@ -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.])
......
......@@ -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`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment