On Tue, Jan 19, 2010 at 04:38:28PM +0100, Dag-Erling Sm??rgrav wrote: > Hans Petter Selasky <hselasky_at_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. AndrewReceived on Tue Jan 19 2010 - 17:20:33 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC