Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2000 23:28:07 -0800
From:      Jeremy Lea <reg@FreeBSD.ORG>
To:        Kris Kennaway <kris@hub.freebsd.org>
Cc:        ports@FreeBSD.ORG
Subject:   Re: USA_OPENSSL
Message-ID:  <20000123232807.M10368@shale.csir.co.za>
In-Reply-To: <Pine.BSF.4.21.0001231634320.46730-100000@hub.freebsd.org>; from kris@hub.freebsd.org on Sun, Jan 23, 2000 at 04:36:51PM -0800
References:  <20000122230114.K10368@shale.csir.co.za> <Pine.BSF.4.21.0001231634320.46730-100000@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Sun, Jan 23, 2000 at 04:36:51PM -0800, Kris Kennaway wrote:
> On Sat, 22 Jan 2000, Jeremy Lea wrote:
> 
> > > +CFLAGS+=		-DNO_IDEA
> 
> I still can't get this to show up in the make job. Even if I put it
> outside the .if block so it should unconditionally be set, it doesn't get
> passed to the build process. This is regardless of whether its done in
> bsd.port.pre.mk or bsd.port.post.mk. Any ideas what's going wrong?

I think I've finally tracked this down, but I'm not yet 100% on a fix. 
The problem is that CFLAGS is passed via the environment to make, and
this is overridden by the definition in make.conf (since macro variables
take precedence over environment variables).  This is then a long
standing bug in bsd.port.mk.

Two possible fixes:  Add -e to MAKE_FLAGS or pass CFLAGS and CXXFLAGS
via MAKE_ARGS.  The second doesn't work for gmake so I'm leaning towards
the first.

Another comment, after some testing.  You also need to test USE_RESIDENT
and set OPENSSL_RSSAREF for -stable (ie for the case where you set
OPENSSLBASE=${LOCALBASE}).

Regards,
 -Jeremy

-- 
FreeBSD - Because the best things in life are free...
                                           http://www.freebsd.org/


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?20000123232807.M10368>