Re: setting CC/CXX/CPP unconditionally in src.conf

看板FB_current作者時間14年前 (2012/03/01 05:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串8/8 (看更多)
On Tue Feb 28 12, Chuck Burns wrote: > On 2/28/2012 4:55 PM, Ade Lovett wrote: > >On 2/28/2012 14:11, Alexander Best wrote: > >>any chance we can have a CFLAGS.gcc and CFLAGS.clang in the future? > >>that would > >>make certain things a lot easier. dealing with gcc specific options, > >>such as > >>-mpreferred-stack-boundary=2 would simply work by setting > >>CFLAGS.gcc=-mpreferred-stack-boundary=2 e.g. > > > >You already can: > > > >CFLAGS.cc= cc_cflags_here > >CFLAGS.clang= clang_cflags_here > > > >CFLAGS+= generic_cflags_here > >CFLAGS+= ${CFLAGS.${CC}} > > > > > >-aDe > > I think was asking for adding a third... > .cc for base gcc > .clang for .. clang...... > and .gcc for ports gcc4x > .. > > At least, thats how I read it, I could be wrong, it's happened before. no you're right. ade's example suits users very well who want to use it in their src.conf. however what i had in mind was something that can be put into the makefiles by developers and which is implemented in *.mk mannor. cheers. alex > > Chuck > _______________________________________________ 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): #1FJf8ENh (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1FJf8ENh (FB_current)