From 064458765e1b90ba0a68bf07460790ec89c21c77 Mon Sep 17 00:00:00 2001 From: yangsheng Date: Fri, 25 Jul 2008 13:13:59 +0000 Subject: [PATCH] Branch b1_8_gate b=16437 i=cliff.white, brian Enable the '-m64' flag for powerpc64 patchless build. --- build/autoconf/lustre-build.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/autoconf/lustre-build.m4 b/build/autoconf/lustre-build.m4 index 5ccadc6..51780bc 100644 --- a/build/autoconf/lustre-build.m4 +++ b/build/autoconf/lustre-build.m4 @@ -593,6 +593,12 @@ if test $ac_cv_sizeof_unsigned_long_long != 8 ; then AC_MSG_ERROR([** we assume that sizeof(long long) == 8. Tell phil@clusterfs.com]) fi +if test $target_cpu == "powerpc64"; then + AC_MSG_WARN([set compiler with -m64]) + CFLAGS="$CFLAGS -m64" + CC="$CC -m64" +fi + CPPFLAGS="-I\$(top_builddir)/$LIBCFS_INCLUDE_DIR -I\$(top_srcdir)/$LIBCFS_INCLUDE_DIR-I\$(top_builddir)/lnet/include -I\$(top_srcdir)/lnet/include -I\$(top_builddir)/lustre/include -I\$(top_srcdir)/lustre/include $CPPFLAGS" LLCPPFLAGS="-D__arch_lib__ -D_LARGEFILE64_SOURCE=1" -- 1.8.3.1