Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2001 20:54:34 -0500
From:      Will Andrews <will@physics.purdue.edu>
To:        "Donald J . Maddox" <dmaddox@sc.rr.com>
Cc:        ports@FreeBSD.ORG
Subject:   Re: How can I make GNU configure respect $CFLAGS?
Message-ID:  <20010113205434.A24382@puck.firepipe.net>
In-Reply-To: <20010113204921.A54960@cae88-102-101.sc.rr.com>; from dmaddox@sc.rr.com on Sat, Jan 13, 2001 at 08:49:21PM -0500
References:  <20010113204921.A54960@cae88-102-101.sc.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 13, 2001 at 08:49:21PM -0500, Donald J . Maddox wrote:
> TSIA...  I would like to make a port of a program that uses a GNU
> configure script.  Problem is, it is bound and determined to set
> $CFLAGS (or actually $CXXFLAGS in this case) to '-g -O2', no matter
> what.  Surely some of you experienced porters out there have run
> into this one before...  How can I make the port respect $CFLAGS
> (or $CXXFLAGS)?

Depends on the distribution's (ab)use of GNU configure.  Usually, you
can make bsd.port.mk export the CFLAGS value in CONFIGURE_ENV.
Sometimes, however, you will have to use a perl regex on either the
configure script itself or the configure.in autoconf script, to
substitute '-g -O2' for ${CFLAGS}.

-- 
wca


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?20010113205434.A24382>