autoconf
[Top][All Lists]
Advanced

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

Re: determining 32 v. 64 bit compilatio


From: Mike Frysinger
Subject: Re: determining 32 v. 64 bit compilatio
Date: Tue, 29 Jun 2010 16:32:39 -0400
User-agent: KMail/1.13.1 (Linux/2.6.34; KDE/4.4.4; x86_64; ; )

On Tuesday, June 29, 2010 16:26:08 Wesley Smith wrote:

please dont top post

> For 64bit builds, I need to #define x86_64 for a lib I'm using.  It
> has nothing to do with the size of longs from my perspective, but
> whether the binary is compiled for a 64 or 32 bit target.

is it a binary-only library ?  if it's open source, encoding the arch in the 
name is a dumb convention that only causes misery.

if you're statically linking against it, then add a configure library test.  
if you're dynamically loading it, then simply try them both.  the host ldso 
should prevent loading of non-compatible ELFs.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]