Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2002 00:06:28 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-ports@freebsd.org
Subject:   Re: Bug in c.m4 of autoconf installation overwrites CFLAGS?
Message-ID:  <aihr64$2d2v$2@kemoauc.mips.inka.de>
References:  <20020803123951.6fd40e50.tilman@arved.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Tilman Linneweh <tilman@arved.de> wrote:

> The Code from AC_PROG_CXX_G goes like this:
> 
> m4_define([_AC_PROG_CXX_G],
> [ac_test_CXXFLAGS=${CXXFLAGS+set}
> ac_save_CXXFLAGS=$CXXFLAGS
[...]
> if test "$ac_test_CXXFLAGS" = set; then
>   CXXFLAGS=$ac_save_CXXFLAGS
> elif  [...]
> else  [...]
> fi[]dnl
> ])# _AC_PROG_CXX_G

> This overwrites CXXFLAGS with O2 in every port that calls AC_PROG_CXX 
> or AC_PROG_CC. 

As far as I can tell, this takes the value of CXXFLAGS from the
environment if that variable is defined and comes up with a default
otherwise.

In short, this is the standard GNU configure behavior and perfectly
fine.  Did I miss something?

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aihr64$2d2v$2>