Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 2010 07:20:22 +1300
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        Dag-Erling Sm??rgrav <des@des.no>
Cc:        freebsd-current@freebsd.org, freebsd-usb@freebsd.org, Hans Petter Selasky <hselasky@c2i.net>
Subject:   Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing [SEC=UNCLASSIFIED]
Message-ID:  <20100119182022.GB58342@citylink.fud.org.nz>
In-Reply-To: <86bpgqds0b.fsf@ds4.des.no>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 19, 2010 at 04:38:28PM +0100, Dag-Erling Sm??rgrav wrote:
> Hans Petter Selasky <hselasky@c2i.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100119182022.GB58342>