Re: About libdir for 64-bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/18/2013 10:07 AM, Thomas Jahns wrote:
On 07/17/13 22:11, Russ Allbery wrote:
Probing sizeof(long) with the configure compiler does a fairly good job
for the most common cases, which is why that's what the macro I posted
does.  In particular, it works for the common cases of -m32 and -m64 on
hosts with both library paths.

How does that distinguish x32 and i386? Or the n32 and o32 formats on IRIX?

No. When being used alone, it only distinguishes targets using 64 longs from targets using other sizes of long. Anything else is overinterpretation.

However, combining sizeof(long) with other cpp defines can be utilized to distinguish archs. In most cases this isn't necessary, because compilers usually provide specialized arch/ABI-specific internal defines which better suite such needs.

Unfortunately, I am not sufficiently familiar with the x32 archs and IRIX to be more specific.

Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux