If I am using automake to build a library if there are no specific flags specifying target system will the result be according to the system that the build is happening on? Meaning compiler on 64bit OS will produce 64bit result and 32bit will produce 32bit? (I am using Fedora 16 and g++ compiler)
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
I assume that that binary output will be the same as the architecture you are running on....unless flags to change this behavior are present. So, you can verify this by compiling something and then doing a file command on the binary. This will tell you if things are 64 or 32 bit. |
|||
|
|
Yes, unless you've gone out of your way to set it up differently, GCC will compile for your processor's architecture. (The generic architecture, not your specific CPU variant — in your case amd64 a.k.a. x86_64). In typical installations of 64-bit GCC, pass |
|||
|
|
