Discussion:
Compiling 32 bit lib on 64 bit OS
Scott Fererro
2015-04-14 20:05:48 UTC
Permalink
I am working on a Linux box and trying to compile a library using autoconf. The problem I am having is that it is a 64 bit OS so autoconf using the 64 bit options. I need the library to be 32 bit. This is because the application that will be using it is compiled as 32 bit. Is there a way to force autoconf to compile it as 32 bit?

Thanks.
Scottf
________________________________
All emails in this message string and any attachments are the confidential information of CSG Systems International, Inc. (CSG), or its affiliates and subsidiaries, and may contain privileged and/or confidential material. If you are not an intended recipient, please delete it immediately and notify the sender; unintended recipients are not authorized to read or otherwise use the information contained herein.
Zack Weinberg
2015-04-15 02:54:49 UTC
Permalink
Try this:

./configure CC="cc -m32" CXX="c++ -m32"

If that gives you the "C compiler cannot create executables" error
message, you need to install the 32-bit development environment.
Post by Scott Fererro
I am working on a Linux box and trying to compile a library using autoconf. The problem I am having is that it is a 64 bit OS so autoconf using the 64 bit options. I need the library to be 32 bit. This is because the application that will be using it is compiled as 32 bit. Is there a way to force autoconf to compile it as 32 bit?
Thanks.
Scottf
________________________________
All emails in this message string and any attachments are the confidential information of CSG Systems International, Inc. (CSG), or its affiliates and subsidiaries, and may contain privileged and/or confidential material. If you are not an intended recipient, please delete it immediately and notify the sender; unintended recipients are not authorized to read or otherwise use the information contained herein.
_______________________________________________
Autoconf mailing list
https://lists.gnu.org/mailman/listinfo/autoconf
Loading...