Compiling and Linking 32 -bit Applications on 64-bit Ubuntu

1)packages needed :-
ia32-libs
gcc-4.x-multilib

2)Changing the compilation and linking flags :-

-m32 -march=[arch] // e.g. -march=i686

add above line to CFLAGS and/or LDFLAGS

you may need to create some links in /usr/lib32/ which will point to actual 32-bit libs

No comments: