From owner-freebsd-ports Sun Jun 30 21:19:27 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6921437B412 for ; Sun, 30 Jun 2002 21:19:18 -0700 (PDT) Received: from mail-relay1.yahoo.com (mail-relay1.yahoo.com [216.145.48.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0CCE43E0A for ; Sun, 30 Jun 2002 21:19:18 -0700 (PDT) (envelope-from DougB@FreeBSD.org) Received: from FreeBSD.org (12-234-90-219.client.attbi.com [12.234.90.219]) by mail-relay1.yahoo.com (Postfix) with ESMTP id 00A398B5A6 for ; Sun, 30 Jun 2002 21:19:11 -0700 (PDT) Message-ID: <3D1FD83E.3C95470D@FreeBSD.org> Date: Sun, 30 Jun 2002 21:19:10 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.79 [en] (X11; U; FreeBSD 4.6-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: ports@FreeBSD.org Subject: can't override CFLAGS in port makefile Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Howdy, Workin' on some stuff this week, I got tripped up again by a problem I've run into before... namely that if a user has CFLAGS defined in /etc/make.conf, I can't twiddle it in my port's Makefile. Specifically, I'd like to be able to add: CFLAGS+= -static under certain circumstances. If I don't define anything for CFLAGS in /etc/make.conf, it works. However, it doesn't if the user has it defined. Any ideas? -- "We have known freedom's price. We have shown freedom's power. And in this great conflict, ... we will see freedom's victory." - George W. Bush, President of the United States State of the Union, January 28, 2002 Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message