Mailinglist Archive: opensuse-packaging (89 mails)
| < Previous | Next > |
Re: [opensuse-packaging] Building 32bit libs
- From: Marcus Meissner <meissner@xxxxxxx>
- Date: Fri, 9 Dec 2005 20:45:24 +0100
- Message-id: <20051209194524.GA6426@xxxxxxx>
On Fri, Dec 09, 2005 at 02:40:23PM -0500, Brandon Barker wrote:
> Hello, I would like to rebuild SDL as a 32 bit library for use in SuSE 10
> x86_64 (there is a patch that I need to apply to the sources, which is why I
> need to rebuild). I've tried the following, but the libraries will not be
> loaded by my desired application (after I've patched it):
>
> export CC="gcc -m32"
> export LD="ld -m elf64_i386"
elf_i386 here I think.
> export AS="gcc -c -m32"
> export LDFLAGS="-L/usr/lib"
> linux32 ./autogen.sh
> linux32 ./configure --libdir=/usr/lib --x-libraries=/usr/X11R6/lib &&
> linux32 make
>
> The installed libraries will not load with my application, though the ones
> that shipped with SuSE linux work fine.
> Any insights into the build process here would be much appreciated.
SUSE builds it in a 32bit environment.
You could do it like this:
linux32 bash --login
and then perhaps use y2pmbuild to build the SDL RPM...
(Just add your own patch.)
Ciao, Marcus
> Hello, I would like to rebuild SDL as a 32 bit library for use in SuSE 10
> x86_64 (there is a patch that I need to apply to the sources, which is why I
> need to rebuild). I've tried the following, but the libraries will not be
> loaded by my desired application (after I've patched it):
>
> export CC="gcc -m32"
> export LD="ld -m elf64_i386"
elf_i386 here I think.
> export AS="gcc -c -m32"
> export LDFLAGS="-L/usr/lib"
> linux32 ./autogen.sh
> linux32 ./configure --libdir=/usr/lib --x-libraries=/usr/X11R6/lib &&
> linux32 make
>
> The installed libraries will not load with my application, though the ones
> that shipped with SuSE linux work fine.
> Any insights into the build process here would be much appreciated.
SUSE builds it in a 32bit environment.
You could do it like this:
linux32 bash --login
and then perhaps use y2pmbuild to build the SDL RPM...
(Just add your own patch.)
Ciao, Marcus
| < Previous | Next > |