Date: 14 Aug 1997 02:49:52 GMT From: nnd@itfs.nsk.su To: bugs@freebsd.org Subject: Re: bin/4291: /usr/bin/make - inconsistent -j<n> flag parsing Message-ID: <5strog$4ri@news.itfs.nsk.su> References: <199708140010.RAA09053@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Steve Passe <smp@csn.net> wrote: > Date: Wed, 13 Aug 1997 18:05:16 -0600 > the supplied fix looks OK, but would this "fix" break any standard? > Specifically, is there a standard we adhere to that says that all '-' options > should preceed variable defines and other command line arguments? > If there even is such a standard tnan proposed "fix" does'nt break it - cause before this fix all other '-' options (apart from -j<n>) were parsed independently of their position on the command line (before or after some variable definitions). So, such a (hipothetical) standard can only be established by some Makefile writing discipline and we can see that f.e. in current /usr/src/Makefile this (hipothetical) discipline is not followed ;-) Here is an example of command(s) generated for "make buildworld" in current (long lines wrapped) : ...... -------------------------------------------------------------- Making make -------------------------------------------------------------- mkdir -p /usr/obj/usr/src/tmp/usr/bin cd /usr/src/usr.bin/make && \ PATH=/usr/obj/usr/src/tmp/sbin:/usr/obj/usr/src/tmp/usr/sbin:\ /usr/obj/usr/src/tmp/bin:/usr/obj/usr/src/tmp/usr/bin:/sbin:/bin:\ /usr/sbin:/usr/bin:/usr/games:/usr/local/bin:/usr/X11R6/bin:/home/nnd/bin \ BISON_SIMPLE=/usr/obj/usr/src/tmp/usr/share/misc/bison.simple \ COMPILER_PATH=/usr/obj/usr/src/tmp/usr/libexec:/usr/obj/usr/src/tmp/usr/bin \ GCC_EXEC_PREFIX=/usr/obj/usr/src/tmp/usr/lib/ \ LD_LIBRARY_PATH=/usr/obj/usr/src/tmp/usr/lib \ LIBRARY_PATH=/usr/obj/usr/src/tmp/usr/lib:/usr/obj/usr/src/tmp/usr/lib \ NOEXTRADEPEND=t make DESTDIR=/usr/obj/usr/src/tmp -I/usr/src/share/mk \ obj clean cleandepend depend && \ PATH=/usr/obj/usr/src/tmp/sbin:/usr/obj/usr/src/tmp/usr/sbin:\ /usr/obj/usr/src/tmp/bin:/usr/obj/usr/src/tmp/usr/bin:/sbin:/bin:\ /usr/sbin:/usr/bin:/usr/games:/usr/local/bin:/usr/X11R6/bin:/home/nnd/bin \ BISON_SIMPLE=/usr/obj/usr/src/tmp/usr/share/misc/bison.simple \ COMPILER_PATH=/usr/obj/usr/src/tmp/usr/libexec:/usr/obj/usr/src/tmp/usr/bin \ GCC_EXEC_PREFIX=/usr/obj/usr/src/tmp/usr/lib/ \ LD_LIBRARY_PATH=/usr/obj/usr/src/tmp/usr/lib \ LIBRARY_PATH=/usr/obj/usr/src/tmp/usr/lib:/usr/obj/usr/src/tmp/usr/lib \ NOEXTRADEPEND=t make DESTDIR=/usr/obj/usr/src/tmp -I/usr/src/share/mk \ -DNOINFO -DNOMAN -DNOPROFILE all install clean cleandepend N.Dudorov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5strog$4ri>