#
AC_DEFUN([LB_PROG_LINUX],
[LB_LINUX_PATH
+LB_LINUX_ARCH
+
+if test $LINUX_ARCH == "powerpc64"; then
+ CFLAGS="$CFLAGS -m64"
+fi
LB_LINUX_CONFIG([MODULES],[],[
AC_MSG_ERROR([module support is required to build Lustre kernel modules.])
AC_MSG_ERROR([** we assume that sizeof(long long) == 8. Tell phil@clusterfs.com])
fi
-# FIXME
-AC_CHECK_DECL([__i386__], [], [
-
-if test x$enable_bgl != xyes; then
-AC_MSG_CHECKING([if $CC accepts -m64])
-CC_save="$CC"
-CC="$CC -m64"
-AC_TRY_COMPILE([],[],[
- AC_MSG_RESULT([yes])
-],[
- AC_MSG_RESULT([no])
- CC="$CC_save"
-])
-fi
-
-])
-
CPPFLAGS="-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"
removed cwd "./" (refer to Bugzilla 14399).
Severity : normal
+Bugzilla : 15278
+Description: fix build on ppc32
+Details : compile code with -m64 flag produce wrong object file for ppc32.
+
+Severity : normal
Bugzilla : 12191
Description: add message levels for liblustreapi
# matter what symbol is exported, the kernel #defines node_to_cpumask
# to the appropriate function and that's what we use.
AC_DEFUN([LC_EXPORT_NODE_TO_CPUMASK],
- [LB_LINUX_ARCH
- LB_CHECK_SYMBOL_EXPORT([node_to_cpumask],
+ [LB_CHECK_SYMBOL_EXPORT([node_to_cpumask],
[arch/$LINUX_ARCH/mm/numa.c],
[AC_DEFINE(HAVE_NODE_TO_CPUMASK, 1,
[node_to_cpumask is exported by