From owner-freebsd-current@FreeBSD.ORG Tue Jan 19 18:20:33 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41C751065670; Tue, 19 Jan 2010 18:20:33 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id F16968FC13; Tue, 19 Jan 2010 18:20:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id D6EA97B861; Wed, 20 Jan 2010 07:20:30 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DZAiX1S4nCf4; Wed, 20 Jan 2010 07:20:26 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Wed, 20 Jan 2010 07:20:23 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 0C5AB11432; Wed, 20 Jan 2010 07:20:23 +1300 (NZDT) Date: Wed, 20 Jan 2010 07:20:22 +1300 From: Andrew Thompson To: Dag-Erling Sm??rgrav Message-ID: <20100119182022.GB58342@citylink.fud.org.nz> References: <201001101437.37269.hselasky@c2i.net> <20100114090329.GH63408@citylink.fud.org.nz> <20100119091217.GR39820@stlux503.dsto.defence.gov.au> <201001191629.13323.hselasky@c2i.net> <86bpgqds0b.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86bpgqds0b.fsf@ds4.des.no> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org, Hans Petter Selasky Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing [SEC=UNCLASSIFIED] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2010 18:20:33 -0000 On Tue, Jan 19, 2010 at 04:38:28PM +0100, Dag-Erling Sm??rgrav wrote: > Hans Petter Selasky writes: > > Please check /etc/make.conf and replace any CFLAGS= with CFLAGS+= > > Bzzt, wrong. It will make no difference whatsoever; make.conf is > included by sys.mk before the Makefile itself is read, so the Makefile > overrides make.conf, not the other way around. I have tested this with CFLAGS=-g in /etc/make.conf /usr/ports/multimedia/webcamd# make -dA ... Global:CFLAGS = -g -I/usr/local/include ... (cd /usr/ports/multimedia/webcamd/work/webcamd-0.1.0; if ! /usr/bin/env SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local X11BASE=/usr/local MOTIFLIB="-L/usr/local/lib -lXm -lXp" LIBDIR="/usr/lib" CC="cc" CFLAGS="-g -I/usr/local/include" CXX="c++" CXXFLAGS="-g -I/usr/local/include" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -o root -g wheel -m 555" BSD_INSTALL_SCRIPT="install -o root -g wheel -m 555" BSD_INSTALL_DATA="install -o root -g wheel -m 444" BSD_INSTALL_MAN="install -o root -g wheel -m 444" make -f M akefile all; then if [ x != x ] ; then echo "===> Compilation failed unexpectedly."; (echo ) | /usr/bin/fmt 75 79 ; fi; false; fi) ... Global:CFLAGS = -g So CFLAGS is being properly passed to the /usr/ports/multimedia/webcamd/work/webcamd-0.1.0/Makefile via the environment but its getting overridden and causing the reported build error. Andrew