Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/make


From: "Christos Zoulas" <>, Date: Tue, 16 Jul 2013 
10:00:53 -0400

> Module Name:  src
> Committed By: christos
> Date:         Tue Jul 16 14:00:53 UTC 2013
> Modified Files:
>       src/usr.bin/make: main.c make.1 var.c
> Log Message:
> More gmake compatibility:
> 1. add -w flag to print Entering and Leaving directory name the the beginning
>    and the end of processing.
> 2. export MAKELEVEL=$((MAKELEVEL + 1)) only in the child environment.
> 3. when printing error messages, prefix them with the program name 
>    for $MAKELEVEL > 0
> 4. if $MAKEFLAGS consists only of letters assume it is a set of flags (as
>    allowed by posix), convert them to -f -l -a -g -s, so that they get parsed
>    properly.
> With those fixes gmake -> bmake -> gmake -> bmake etc. works as expected.
> To generate a diff of this commit:
> cvs rdiff -u -r1.219 -r1.220 src/usr.bin/make/main.c
> cvs rdiff -u -r1.218 -r1.219 src/usr.bin/make/make.1
> cvs rdiff -u -r1.181 -r1.182 src/usr.bin/make/var.c
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.

With this change, I have gotten following errors.
I think -lutil is needed.

cc  -O -o nbmake *.o
main.o: In function `main':
main.c:(.text+0x2362): undefined reference to `estrdup'
main.c:(.text+0x23ca): undefined reference to `estrdup'
main.c:(.text+0x2d6d): undefined reference to `emalloc'

ERROR: Build of nbmake failed

PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

Home | Main Index | Thread Index | Old Index