ppc64_linux26: build binaries as 64-bit by default

lwp doesnt work since ucontext/setjmp are incomplete when running 32-bit
binaries with the 64-bit kernel.

Reviewed-on: http://gerrit.openafs.org/5365
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 39b788eeaf)

Change-Id: Ic4fd5c1a861db8e96dd58a79d7fb2ea73ab4f0d6
Reviewed-on: http://gerrit.openafs.org/9605
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
This commit is contained in:
chas williams - CONTRACTOR 2011-09-05 09:26:32 -04:00 committed by Stephan Wiesand
parent 9be556d2c1
commit b8a7861ed0
5 changed files with 9 additions and 4 deletions

View File

@ -258,8 +258,11 @@ case $AFS_SYSNAME in
PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
SHLIB_LDFLAGS="-shared -Xlinker -x"
SHLIB_CFLAGS="-fPIC"
XCFLAGS="-D_LARGEFILE64_SOURCE -fPIC"
XCFLAGS="-D_LARGEFILE64_SOURCE -fPIC -m64"
SHLIB_LINKER="${MT_CC} -shared"
SHLIB_LINKER="${MT_CC} -shared -m64"
XLDFLAGS="-m64"
ASFLAGS="-a64"
;;
i386_linux*)
@ -831,6 +834,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)

View File

@ -32,6 +32,7 @@ viceetcdir=@viceetcdir@
#
AR = @AR@
AS = @AS@
ASFLAGS = @ASFLAGS@
AFSD_LIBS = @AFSD_LIBS@
AFSD_LDFLAGS = @AFSD_LDFLAGS@
CC = @CC@

View File

@ -389,7 +389,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

View 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

View File

@ -404,7 +404,7 @@ syscall.o: ${SYS}/syscall.s
${CC} ${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