Compiling 32bit winelib apps on x86_64

Stefan Brüns lurchi at
Tue May 1 12:16:45 CDT 2007


I had some problems compiling 32bit winelib apps on x86_64 - the tools
tried to build for 64bit all the time. I had to change a few things in
the winemaker created Makefile to make it work:

<>_exe_LDFLAGS: added  "-Wb,--as-cmd='as --32',--ld-cmd='ld -melf_i386'"
CC: added "-m32"
CXX: added "-m32"

After applying the changes, everything worked as expected.



Stefan Brüns  /  Kastanienweg 6 - Zimmer 1206  /  52074 Aachen
mailto:lurch at
   phone: +49 241 169-4206     mobile: +49 160 3797725

More information about the wine-devel mailing list