From owner-freebsd-ports Sun Jan 23 23:28:58 2000 Delivered-To: freebsd-ports@freebsd.org Received: from shale.csir.co.za (shale.csir.co.za [146.64.46.5]) by hub.freebsd.org (Postfix) with ESMTP id E250F1587A; Sun, 23 Jan 2000 23:28:47 -0800 (PST) (envelope-from reg@shale.csir.co.za) Received: from granite.hip.berkeley.edu (granite.hip.berkeley.edu [136.152.155.25]) by shale.csir.co.za (8.9.3/8.9.3) with ESMTP id JAA73186; Mon, 24 Jan 2000 09:28:37 +0200 (SAT) (envelope-from reg@shale.csir.co.za) Received: (from reg@localhost) by granite.hip.berkeley.edu (8.9.3/8.9.3) id XAA50284; Sun, 23 Jan 2000 23:28:08 -0800 (PST) (envelope-from reg) Date: Sun, 23 Jan 2000 23:28:07 -0800 From: Jeremy Lea To: Kris Kennaway Cc: ports@FreeBSD.ORG Subject: Re: USA_OPENSSL Message-ID: <20000123232807.M10368@shale.csir.co.za> References: <20000122230114.K10368@shale.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from kris@hub.freebsd.org on Sun, Jan 23, 2000 at 04:36:51PM -0800 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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