I'm struggling with compiling apps in 32 bit mode on my x86_64 box. Using -m32 the compilation works fine. But linking fails, because many of the libs in /usr/lib are only versioned (e.g. libjpeg.so.62 and libjpeg.so.62.0.0), but it's missing the generic libjpeg.so link, so 'gcc test.c -ljpeg' just fails because it can't find anything.
So far I've just kludged it by creating those links myself, but that's not a solution. Why are those links missing?