Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 2001 14:41:39 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-ports@freebsd.org
Subject:   Re: How can I make GNU configure respect $CFLAGS?
Message-ID:  <93sdr3$g1p$1@kemoauc.mips.inka.de>
References:  <20010113204921.A54960@cae88-102-101.sc.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Donald J . Maddox <dmaddox@sc.rr.com> 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...

Normally, configure picks up CFLAGS/CXXFLAGS from the environment,
where bsd.port.mk places them automatically for the configure
target.

There are however some broken configure scripts out there, partly
accidental, partly intentional (-Oinfinite -ftruly-bizarre).  In
that case you need to patch the configure script, or better (and
more easily) configure.in.

-- 
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?93sdr3$g1p$1>