Novell LINUX ENTERPRISE SERVER 11 - ADMINISTRATION Administration Manual page 72

Hide thumbs Also See for LINUX ENTERPRISE SERVER 11 - ADMINISTRATION:
Table of Contents

Advertisement

packages and the development libraries for the second architecture from
rpmname-devel-32bit or rpmname-devel-64bit.
For example, to compile a program that uses libaio on a system whose second archi-
tecture is a 32-bit architecture (x86_64 or System z), you need the following RPMs:
libaio-32bit
32-bit runtime package
libaio-devel-32bit
Headers and libraries for 32-bit development
libaio
64-bit runtime package
libaio-devel
64-bit development headers and libraries
Most open source programs use an autoconf-based program configuration. To use
autoconf for configuring a program for the second architecture, overwrite the normal
compiler and linker settings of autoconf by running the configure script with
additional environment variables.
The following example refers to an x86_64 system with x86 as the second architecture.
Examples for ppc64 with ppc as the second architecture would be similar. This example
does not apply to ia64 where you cannot build 32-bit packages.
1 Use the 32-bit compiler:
2 Instruct the linker to process 32-bit objects (always use gcc as the linker front-
3 Set the assembler to generate 32-bit objects:
4 Determine that the libraries for libtool and so on come from /usr/lib:
58
Administration Guide
CC="gcc -m32"
end):
LD="gcc -m32"
AS="gcc -c -m32"

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11

Table of Contents