compiling 32 bit code under amd64

Satish Balay balay at fastmail.fm
Wed Dec 8 05:05:03 UTC 2004


On Tue, 7 Dec 2004, Aleksander Demko wrote:

> I can't seem too easily (without crazy ln -s hacks) compile 32 bit
> code under my 64-bit fedora core 3 (on my AMD64). Very simple C/C++
> app works, but as soon as I start pkg-config'in anything, it's like
> gcc ignores everything in /usr/lib.

> [testuser at moya tmp]$ gcc -m32 `pkg-config --cflags --libs glib-2.0`

Soulds like pkgconfig doesn't have 'multi-lib' support (i.e tell it to
look for 32 bit version of the package - instead of the 64bit).

You can look at the /usr/lib/pkgconfig/*pc file directly - and see if
it has multiple files for i386 & x86_64

Perhaps a bugzilla item?

Satish




More information about the fedora-list mailing list