From owner-freebsd-ports Wed Jan 6 02:24:41 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA20207 for freebsd-ports-outgoing; Wed, 6 Jan 1999 02:24:41 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA20194 for ; Wed, 6 Jan 1999 02:24:27 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 2.10 #1) id 0zxq7r-0004sl-00 for ports@freebsd.org; Wed, 6 Jan 1999 12:23:43 +0200 From: Sheldon Hearn To: ports@FreeBSD.ORG Subject: Imake'd ports and local CFLAGS Date: Wed, 06 Jan 1999 12:23:43 +0200 Message-ID: <18770.915618223@axl.noc.iafrica.com> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi folks, This mail relates to my recent post on the issue of ports not honouring local CFLAGS and some discussion I saw in cvs-digest-all. It looks to me like we could sort out a large number of the ports that don't honour local CFLAGS by fixing Imake. It looks like Imake takes optimization flags from /usr/X11R6/lib/X11/config/FreeBSD.cf regardless of local CFLAGS. I have absolutely _no_ idea how to teach Imake to use $(CFLAGS) for DefaultGcc2i386Opt and OptimizedCDebugFlags, but that seems to be what's needed. The simplest solution is to install Imake's FreeBSD.cf using the build-time local CFLAGS, but this isn't good for packaging. A better solution would be to make this dynamic. That probably means teaching Imake to grok /etc/make.conf , since its stupid "variable recursion testing" barfs on ``CFLAGS= $(CFLAGS)''. Am I on the right track here? Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message