wiki:Python

Version 4 (modified by jim@…, 16 years ago) ( diff )

--

Python

Multilib Instructions

Patch for Multilib Support http://www.linuxfromscratch.org/patches/downloads/Python/Python-2.4.2-multilib-1.patch

32 Bit

Add the following before configure to build as 32 bit
For Most Architectures use CC="gcc -m32" CXX="g++ -m32"
For MIPS use CC="gcc -mabi=32" CXX="g++ -mabi=32"

Follow the instructions from the BLFS Book
http://www.linuxfromscratch.org/blfs/view/cvs/general/python.html[[BR]]

N32 - MIPS only

patch -Np1 -i ../Python-2.4.2-multilib-1.patch &&
sed -i -e "s:@@MULTILIB_DIR@@:lib32:g" \
        Lib/distutils/command/install.py \
        Lib/distutils/sysconfig.py \
        Lib/site.py \
        Makefile.pre.in \
        Modules/Setup.dist \
        Modules/getpath.c \
        setup.py

Add the following before configure to build as N32
For MIPS use CC="gcc -mabi=n32" CXX="g++ -mabi=n32"

To complete follow instructions from the BLFS Book
Follow the instructions from the BLFS Book
http://www.linuxfromscratch.org/blfs/view/cvs/general/python.html

64 Bit

patch -Np1 -i ../Python-2.4.2-multilib-1.patch &&
sed -i -e "s:@@MULTILIB_DIR@@:lib64:g" \
        Lib/distutils/command/install.py \
        Lib/distutils/sysconfig.py \
        Lib/site.py \
        Makefile.pre.in \
        Modules/Setup.dist \
        Modules/getpath.c \
        setup.py

Add the following before configure to build as 64 bit
For Most Architectures use CC="gcc -m64" CXX="g++ -m64"
For MIPS use CC="gcc -mabi=64" CXX="g++ -mabi=64"

To complete follow instructions from the BLFS Book
Follow the instructions from the BLFS Book
http://www.linuxfromscratch.org/blfs/view/cvs/general/python.html

Up
Top

Note: See TracWiki for help on using the wiki.