From owner-freebsd-current@FreeBSD.ORG Wed May 30 12:24:59 2007 Return-Path: X-Original-To: freebsd-current@FreeBSD.ORG Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B40BC16A47C for ; Wed, 30 May 2007 12:24:59 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 1E59C13C465 for ; Wed, 30 May 2007 12:24:58 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (shkjof@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l4UCOqqs030683; Wed, 30 May 2007 14:24:57 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l4UCOqBS030682; Wed, 30 May 2007 14:24:52 +0200 (CEST) (envelope-from olli) Date: Wed, 30 May 2007 14:24:52 +0200 (CEST) Message-Id: <200705301224.l4UCOqBS030682@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG, c47g@gmx.at In-Reply-To: <200705291934.12668.c47g@gmx.at> X-Newsgroups: list.freebsd-current User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 30 May 2007 14:24:57 +0200 (CEST) X-Mailman-Approved-At: Wed, 30 May 2007 12:29:20 +0000 Cc: Subject: Re: problems with make.conf, c47g@gmx.at 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: Wed, 30 May 2007 12:24:59 -0000 Christian Gusenbauer wrote: > Pieter de Goeje wrote: > > Christian Gusenbauer wrote: > > > 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? > > > > 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. As Pieter pointed out, using CFLAGS+=... in /etc/make.conf should work (i.e. ``+='' instead of ``=''). Did you try that? Just out of curiosity, I'm wondering why you want to set the CFLAGS globally in /etc/rc.conf? There aren't many good reasons to do so, at least on i386 and amd64. Most of the time people change their CFLAGS they make things worse. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Perl will consistently give you what you want, unless what you want is consistency." -- Larry Wall