gcc architecture question
Posted
by Andy
on Stack Overflow
See other posts from Stack Overflow
or by Andy
Published on 2010-05-17T16:24:41Z
Indexed on
2010/05/17
16:40 UTC
Read the original article
Hit count: 247
Hi,
I'm compiling my program with architecture set to
-mtune=i386
However, I'm also linking statically against several libs (libpng, zlib, jpeglib, vorbisfile, libogg). I've built these libs on my own using configure and make, so I guess these libs were built with architecture being set to my system's architecture which would be i686. But I don't want that! I want my program to run on i386, too, so I need to make sure that all these libs that I'm statically linking against are built for i386, too.
So my question: Is there a convenient way to build libpng/zlib/jpeglib/vorbisfile/libogg etc. for i386 or do I have to modify all of their makefiles manually and make sure that -mtune is set to i386?
Thanks for help!
Andy
© Stack Overflow or respective owner