Re: Make variables to force non default libraries and includes?

看板FB_current作者時間11年前 (2014/04/29 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/12 (看更多)
On Apr 28, 2014, at 1:48 AM, Julian Elischer <julian@FreeBSD.org> wrote: > I need to do the equivalent of "cd /usr/src/cddl/usr.sbin/dtrace; make D= ESTDIR=3D/mumble all install=94 cd /usr/src make distributeworld DESTDIR=3D/mumble cd cddl/usr.sbin/dtrace make buildenv make all install > but it pulls in libraries from the base system, which differ slightly fro= m those in the source tree. The above will create the right /mumble hierarchy, and will pull the librar= ies from the build rather than the local system. > How can I force it to use /mumble2/include and /mumble2/lib instead of / ? > = > I can pre-populate /mumble2 using "make buildworld", "make libraries", an= d "make includes" but > I need to be able to do selective builds of just subdirectories after tha= t.. I haven't spotted the right way of forcing the use of the "--system_ro= ot /mumble2" option in the compiles. > = > I know we do it in 'buildworld' is there a more generic way? > = > I have been looking in the .mk files but I haven't spotted it so far. You=92re asking for some serious split-brain action. chroot builds are like= ly your best option. There=92s no easy way to force this, although you migh= t get some milage out of WMAKEENV options, but I think we bake most of the = where to look for things options into the binaries. One crazy option would = be to set CC=3D=93cc =97sysroot /mumble=94 but I=92m sure there be dragons = there=85 Good luck with this crazy, never have we supported it very well, option :) Warner _______________________________________________ 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): #1JNldEHW (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 10 之 12 篇):
文章代碼(AID): #1JNldEHW (FB_current)