Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007 Installation Manual page 387

Table of Contents

Advertisement

TIP
When using s390 as second architecture, you have to use -m31 instead of
-m32, because this is a 31 bit system.
1 Use the 32-bit compiler:
CC="gcc -m32"
2 Instruct the linker to process 32-bit objects (always use gcc as the linker front-
end):
LD="gcc -m32"
3 Set the assembler to generate 32-bit objects:
AS="gcc -c -m32"
4 Determine that the libraries for libtool and so on come from /usr/lib:
LDFLAGS="-L/usr/lib"
5 Determine that the libraries are stored in the lib subdirectory:
--libdir=/usr/lib
6 Determine that the 32-bit X libraries are used:
--x-libraries=/usr/X11R6/lib/
Not all of these variables are needed for every program. Adapt them to the respective
program.
An example configure call to compile a native 32-bit application on x86_64, ppc64,
or s390x could appear as follows:
CC="gcc -m32"
LDFLAGS="-L/usr/lib;"
.configure
--prefix=/usr
--libdir=/usr/lib
make
make install
\
\
\
\
32-Bit and 64-Bit Applications in a 64-Bit System Environment
369

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents