Re: [PATCH] configure: Respect LDFLAGS from the environment.

Subject: Re: [PATCH] configure: Respect LDFLAGS from the environment.

Date: Wed, 12 May 2010 13:00:27 -0400

To: Nelson Elhage, notmuch@notmuchmail.org

Cc:

From: Jameson Rollins


On Wed, 12 May 2010 12:45:52 -0400, Nelson Elhage <nelhage@ksplice.com> wrote:
> The configure usage string documents that it respects LDFLAGS, but
> currently it doesn't do anything with the configure-time LDFLAGS
> value.
> ---
>  configure |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/configure b/configure
> index c522ad8..90355e8 100755
> --- a/configure
> +++ b/configure
> @@ -6,6 +6,7 @@ CC=${CC:-gcc}
>  CXX=${CXX:-g++}
>  CFLAGS=${CFLAGS:--O2}
>  CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}
> +LDFLAGS=${LDFLAGS-}

Hey, Nelson.  I'm not sure exactly what you're trying to do here, but
I'm betting that this is not it.  If you're trying to get the LDFLAGS
var from the existing environment, you probably want:

LDFLAGS=${LDFLAGS:-}

jamie.
part-000.sig (application/pgp-signature)

Thread: