Skip to content
Snippets Groups Projects
Commit 9f65644c authored by jacob's avatar jacob
Browse files

b=5278

r=adilger

use -m64 for userspace when the compiler supports it.

This is needed on 64-bit systems where the default compiler is 32-bit
(SLES 9 on ppc64).
parent 67b7feb3
No related branches found
No related tags found
No related merge requests found
......@@ -317,6 +317,16 @@ 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
AC_MSG_CHECKING([if $CC accepts -m64])
CFLAGS_save="$CFLAGS"
CFLAGS="-m64 $CFLAGS"
AC_TRY_COMPILE([],[],[
AC_MSG_RESULT([yes])
],[
AC_MSG_RESULT([no])
CFLAGS="$CFLAGS_save"
])
CPPFLAGS="-I\$(top_srcdir)/lustre/include -I\$(top_srcdir)/portals/include $CPPFLAGS"
LLCPPFLAGS="-D__arch_lib__ -D_LARGEFILE64_SOURCE=1"
......
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