Re: ports include /etc/src.conf? i.e. graphics/libfpx

看板FB_current作者時間12年前 (2013/04/27 13:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串13/19 (看更多)
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 _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1HUsBOuu (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUsBOuu (FB_current)