[OpenAFS] compiling openafs 1.4.7 on PPC64

Harald Barth haba@kth.se
Thu, 09 Apr 2009 16:14:34 +0200 (CEST)


We have to run sles9 on ppc (it comes as the only supported frontend
OS to a so called supercomputer from IBM). The build in the 32-bit
environment did need a small patch (see below). We run 1.4.10 since
yesterday. You should probably, too. I do not have any 64-bit patches
for you, sorry.

Harald.

--- src/shlibafsauthent/Makefile.in~      2006-08-20 15:17:25.000000000 -0500
+++ src/shlibafsauthent/Makefile.in       2007-01-20 05:17:32.232013264 -0600
@@ -16,7 +16,7 @@
 include @TOP_OBJDIR@/src/config/Makefile.config
 
 CC=${MT_CC}
-CFLAGS=${COMMON_CFLAGS} ${MT_CFLAGS} ${SHLIB_CFLAGS} -I../auth -I../kauth -I../ptserver -I../sys
+CFLAGS=${COMMON_CFLAGS} ${MT_CFLAGS} -fPIC ${SHLIB_CFLAGS} -I../auth -I../kauth -I../ptserver -I../sys
 CCRULE = ${CC} ${CFLAGS} -c $?
 
 AUDIT= ../audit
--- src/shlibafsrpc/Makefile.in~  2006-08-20 17:24:10.000000000 -0500
+++ src/shlibafsrpc/Makefile.in   2007-01-20 05:17:53.869921568 -0600
@@ -20,7 +20,7 @@
 CC=${MT_CC}
 INCLUDES=-I.. -I${srcdir}/../rx -I${srcdir}../des -I../des \
        -I../rxkad -I${srcdir}/../rxkad -I../rxstat -I../fsint
-CFLAGS = ${COMMON_CFLAGS} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS} ${SHLIB_CFLAGS}
+CFLAGS = ${COMMON_CFLAGS} ${INCLUDES} -DRXDEBUG -fPIC ${MT_CFLAGS} ${SHLIB_CFLAGS}
 SFLAGS=-P -I${TOP_INCDIR}
 
 RX = ../rx