[Top][All Lists]

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

Re: patch to lib-prefix.m4

From: Monty Taylor
Subject: Re: patch to lib-prefix.m4
Date: Mon, 22 Jun 2009 14:28:31 -0700
User-agent: Thunderbird (X11/20090409)

Bruno Haible wrote:
> [Adding CC to bug-gnulib]
> Hi,
> Monty Taylor wrote:
>> I've got a patch for lib-prefix.m4, but I'm not sure if it should go to
>> gettext or to gnulib.  (Thanks for writing it, btw)
>> It's related to 64-bit detection on Solaris. (Which makes me want to
>> kill someone, btw) Just running the preprocessor doesn't catch the
>> instances where someone is specifying -m64 in CFLAGS. Actually compiling
>>  has had much better success for us in the projects where we're using
>> this macro...
>> Is there a better way to submit/send this somewhere?
> Submitting it to me was fine. I CC bug-gnulib, because that's the primary
> forum for discussing portability code like this one.

Great. Thanks!

>> someone is specifying -m64 in CFLAGS
> Specifying -m64 in the CFLAGS is not enough. The autoconf documentation [1]
> recommends to use either
>   CPPFLAGS=-m64 LDFLAGS=-m64
> or
>   CC="gcc -m64".
> The reason is precisely so that autoconf tests which run the preprocessor
> will yield the expected result.

Fair enough ... on the other hand, though, I tried also setting
CPPFLAGS=-m64 and it still didn't work. Perhaps _LP64 isn't always set
for Sun Studio compilers?


reply via email to

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