compiling 32bit libraries on x86-64 system

Nikos Chantziaras realnc at arcor.de
Fri Jan 2 08:49:17 PST 2009


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
> 
> LDFLAGS=-L/opt/X11R7-32/lib ./configure --prefix=/opt/X11R7-32
> --enable-32-bit --build=x86-linux

Actually you don't need to do anything else than just add "-m32" to 
CFLAGS/CXXFLAGS/LDFLAGS.  GCC will automatically pick 32-bit libs and 
produce 32-bit binaries.  You don't need -L or --build.

At least that's how it works here.




More information about the xorg mailing list