bug-gnulib
[Top][All Lists]
Advanced

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

Re: patch to lib-prefix.m4


From: Bruno Haible
Subject: Re: patch to lib-prefix.m4
Date: Mon, 22 Jun 2009 23:00:11 +0200
User-agent: KMail/1.9.9

[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.

> 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.

Bruno

[1] 
http://www.gnu.org/software/autoconf/manual/html_node/Preset-Output-Variables.html




reply via email to

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