ppc64_linux26: build binaries as 64-bit by default
authorchas williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Mon, 5 Sep 2011 13:26:32 +0000 (09:26 -0400)
committerDerrick Brashear <shadow@dementix.org>
Wed, 7 Sep 2011 16:01:48 +0000 (09:01 -0700)
lwp doesnt work since ucontext/setjmp are incomplete when running 32-bit
binaries with the 64-bit kernel.

Change-Id: I9c52d9d934638075fc1693ed94f20665822e5e6e
Reviewed-on: http://gerrit.openafs.org/5365
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>

src/cf/osconf.m4
src/config/Makefile.config.in
src/libafsrpc/Makefile.in
src/libuafs/MakefileProto.LINUX.in
src/shlibafsrpc/Makefile.in

index eddb356..3bbeafe 100644 (file)
@@ -237,7 +237,10 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_CFLAGS="-fPIC"
-               SHLIB_LINKER="${MT_CC} -shared"
+               SHLIB_LINKER="${MT_CC} -shared -m64"
+               XCFLAGS="-m64"
+               XLDFLAGS="-m64"
+               ASFLAGS="-a64"
                ;;
 
        i386_linux*)
@@ -756,6 +759,7 @@ AC_SUBST(AIX32)
 AC_SUBST(AIX64)
 AC_SUBST(AR)
 AC_SUBST(AS)
+AC_SUBST(ASFLAGS)
 AC_SUBST(CP)
 AC_SUBST(DBG)
 AC_SUBST(FSINCLUDES)
index bba79b0..23f2902 100644 (file)
@@ -32,6 +32,7 @@ viceetcdir=@viceetcdir@/
 #
 AR = @AR@
 AS = @AS@
+ASFLAGS = @ASFLAGS@
 AFSD_LIBS = @AFSD_LIBS@
 AFSD_LDFLAGS = @AFSD_LDFLAGS@
 CC = @CC@
index 3b49d02..dab6a44 100644 (file)
@@ -294,7 +294,7 @@ syscall.o: ${SYS}/syscall.s
                ${CC} ${AFS_CFLAGS} -c syscall.c;; \
         *) \
                $(PATH_CPP) ${SFLAGS} ${SYS}/syscall.s > syscall.ss; \
-               as -o syscall.o syscall.ss;             \
+               as $(ASFLAGS) -o syscall.o syscall.ss;          \
                $(RM) syscall.ss;;                              \
        esac
 
index eed1334..ca32e46 100644 (file)
@@ -31,7 +31,7 @@ CFLAGS+= -I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) $
 OPTF=-O
 # WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
 
-TEST_CFLAGS=-pthread -D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_LINUX22_ENV
+TEST_CFLAGS=-pthread -D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_LINUX22_ENV $(XCFLAGS)
 TEST_LDFLAGS=
 TEST_LIBS=-lpthread @LIB_crypt@
 
index 29b9226..f51ff66 100644 (file)
@@ -302,7 +302,7 @@ syscall.o: ${SYS}/syscall.s
                ${CC} ${AFS_CFLAGS} -c syscall.c;; \
         *) \
                $(PATH_CPP) ${SFLAGS} ${SYS}/syscall.s > syscall.ss; \
-               as -o syscall.o syscall.ss;             \
+               as $(ASFLAGS) -o syscall.o syscall.ss;          \
                $(RM) syscall.ss;;                              \
        esac