Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Feb 2013 21:30:02 +0900
From:      Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        "free >> Current FreeBSD" <freebsd-current@freebsd.org>, Ports FreeBSD <freebsd-ports@FreeBSD.org>
Subject:   Re: ports include /etc/src.conf? i.e. graphics/libfpx
Message-ID:  <511B874A.7080901@kbh.biglobe.ne.jp>
In-Reply-To: <511B662C.7030602@zedat.fu-berlin.de>
References:  <511B662C.7030602@zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <bsd.lib.mk>,
/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




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