|
From: | Ralf Corsepius |
Subject: | Re: About libdir for 64-bit |
Date: | Thu, 18 Jul 2013 15:53:18 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |