Date: Tue, 29 May 2007 19:34:06 +0200 From: Christian Gusenbauer <c47g@gmx.at> To: Pieter de Goeje <pieter@degoeje.nl> Cc: freebsd-current@freebsd.org Subject: Re: problems with make.conf Message-ID: <200705291934.12668.c47g@gmx.at> In-Reply-To: <200705291408.28690.pieter@degoeje.nl> References: <200705260957.51060.c47g@gmx.at> <200705291408.28690.pieter@degoeje.nl>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Hi Pieter! On Tuesday, 29. May 2007, Pieter de Goeje wrote: > On Saturday 26 May 2007, Christian Gusenbauer wrote: > > Hi! > > > > I've a problem compiling the port graphics/libGLw. The port's Makefile > > contains the line > > > > CFLAGS+=-D__GLX_MOTIF=1 > > > > As long as I don't set my own CFLAGS in /etc/make.conf, the port compiles > > fine. But if I set my own CFLAGS in /etc/make.conf, the CFLAGS+= line in > > the Makefile seems to be ignored (or overwritten by my settings). > > > > How do I correctly use the /etc/make.conf file? How can I use my own > > settings? > > > > Thanks, > > Christian. > > Have you tried putting CFLAGS+= .... (note the +) in make.conf? Otherwise > you could try setting the correct cflags in the environment before > executing make, for example: setenv CFLAGS -Os. Thanks for this tip! I didn't know, that it's possible to use environment variables for this. But the question remains: how to correctly use these settings in make.conf. Because even in the /usr/share/examples/etc/make.conf it's documented to use CFLAGS= (without the +). But doing it that way, these settings break port builds. > > HTH, > Pieter de Goeje Many thanks, Christian. [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQBGXGQU73Wh/GTgh8wRAuBdAJ4+U14feoF+m1R6m3BJW6kjJen0HwCfTiDa 2QJiyzS6JFSf1UoGt48NTv4= =IH5H -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705291934.12668.c47g>
