From owner-freebsd-current@FreeBSD.ORG Wed Feb 13 12:29:58 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CE77A345; Wed, 13 Feb 2013 12:29:58 +0000 (UTC) (envelope-from yamayan@kbh.biglobe.ne.jp) Received: from rcpt-expgw.biglobe.ne.jp (rcpt-expgw.biglobe.ne.jp [IPv6:2001:260:401:16::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4C5F6ECB; Wed, 13 Feb 2013 12:29:58 +0000 (UTC) Received: from vc-gw.biglobe.ne.jp by rcpt-expgw.biglobe.ne.jp (shby/5910021009) with SMTP id r1DCTuHb002894; Wed, 13 Feb 2013 21:29:56 +0900 Received: from smtp-gw.biglobe.ne.jp ([172.21.175.155]) by vc-gw.biglobe.ne.jp (kbkr/0716090908) with ESMTP id r1DCTuZl015522; Wed, 13 Feb 2013 21:29:56 +0900 X-Biglobe-Sender: Received: from [192.168.0.100] (KD027083060020.ppp-bb.dion.ne.jp [27.83.60.20]) by smtp-gw.biglobe.ne.jp id VABCAC15AFDB; Wed, 13 Feb 2013 21:29:55 +0900 (JST) Message-ID: <511B874A.7080901@kbh.biglobe.ne.jp> Date: Wed, 13 Feb 2013 21:30:02 +0900 From: Yamaya Takashi User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: "O. Hartmann" Subject: Re: ports include /etc/src.conf? i.e. graphics/libfpx References: <511B662C.7030602@zedat.fu-berlin.de> In-Reply-To: <511B662C.7030602@zedat.fu-berlin.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 13 Feb 2013 12:44:07 +0000 Cc: "free >> Current FreeBSD" , Ports FreeBSD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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, 13 Feb 2013 12:29:58 -0000 On 2013/02/13 19:08, O. Hartmann wrote: > Setting only base system source compiler optins in /etc/src.conf, for > instance > > # > CXXFLAGS+= -stdlib=libc++ > CXXFLAGS+= -std=c++11 > > > which do NOT appear in /etc/make.conf, make building port > grahpics/libfpx complaining about unrecognized compiler options. > > As far a sI know, /etc/src.conf is ONLY for building the source tree of > the operating system and make.conf is supposed to contain all stuff > necessary for compiling both world and ports, but /etc/src.conf is world > only. > > Am I wrong? > > Oliver > Yes. Because files/Makefile.bsd includes , /etc/src.conf is included. Remove CXXFLAGS from /etc/src.conf Add the following to /etc/make.conf .if !empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*) CXXFLAGS+= -std=c++11 -stdlib=libc++ .endif