compiling 32bit libraries on x86-64 system
Ian Romanick
idr at freedesktop.org
Fri Jan 9 11:43:35 PST 2009
On Thu, Jan 01, 2009 at 08:23:05PM -0800, Dirk Hohndel wrote:
> I must be missing some 'configure' magic here...
>
> For some modules (like the X server) it's rather straight forward to
> build 32bit on a 64bit system. Something like
I have a bunch of scripts that wrap up my builds, and I have some
magic to build 32-bit libraries on 64-bit systems. There are a couple
tricks that I use.
1. I call the top-level script as 'linux32 do_build.sh --libraries-only'
2. My do_build.sh scripts detects whether the architecture is 32-bit
or 64-bit by using 'uname -m'. On 32-bit systems '-m32' is added to
CFLAGS and CXXFLAGS.
3. The architecture is also used to determine whether the library
install path is $prefix/lib64 or $prefix/lib.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20090109/bd4b762c/attachment.pgp>
More information about the xorg
mailing list