Search Linux Wireless

Re: Cross compiling crda and SSL word size

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

 



On Thu, Jul 16, 2009 at 3:24 PM, Johannes Berg<johannes@xxxxxxxxxxxxxxxx> wrote:
> On Thu, 2009-07-16 at 21:09 +0200, Johannes Berg wrote:
>> On Thu, 2009-07-16 at 15:04 -0400, Jon Smirl wrote:
>> > When cross compiling crda the Makefile asks the python system what the
>> > word size is. This gets the word size from the host. Is there a way to
>> > ask the word size using gcc? In my environment the Makefile is
>> > automatically using the correct gcc cross compiler.
>>
>> Can you just use gnutls instead? it has no such issue :)
>>
>> Otherwise you can probably parse it out of "gcc -dumpspecs", but that
>> format doesn't look too nice, especially with multilib gcc...
>
> C99 says this works, I think:
>
> echo -e '#include <limits.h>\n#if ULONG_MAX == 4294967295\n32\n#elif ULONG_MAX == 18446744073709551615U\n64\n#else\n0\n#endif' | gcc -E - | sed 's/^\(#.*\|\)$//;T;d'

The problem test is in key2pub.py

def print_ssl(output, name, val):
    import struct
    if len(struct.pack('@L', 0)) == 8:
        return print_ssl_64(output, name, val)
    else:
        return print_ssl_32(output, name, val)


>
> johannes
>



-- 
Jon Smirl
jonsmirl@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux