How to compile source code as 32bit under 64bit OS.
Been searching a bit and can't really find what I am looking for. Can one compile source code as 32bit on a 64bit OS? Meaning a source file that is requires ./configure, make , make install routine. At the moment I have a small virtual 32bit OS installed and use this to build if needed. Just would like to know if it can be right in the 64bit OS and end up with a 32bit version. All 32bit libriares for the app is installed but can't figure out how to tell the ./configure to use the 32bit versions to build.
Thanks for your time and help. Brian |
If your toolchain is built with multilib support, then you can do something like this when you configure the package. You need to have pkg-config installed.
Code:
CC="gcc -m32" CXX="g++ -m32" \ |
Thanks for the help.
Brian |
All times are GMT -5. The time now is 12:55 AM. |