In message <Pine.A41.4.05.9810291508090.60000-00000X@esquelet>
you Ciaran Deignan <firstname.lastname@example.org> wrote:
|I have a problem building delegated version 5.7.1 on AIX 4.1.5 with GNU
|make version 3.76.1.
|GNU Make displays the message
| Entering directory 'xxxxxxx' when the directory changes.
|the Mkmake tool does not discard this warning, and thus the
|contents of Makefile.go becomes corrupted.
|The problem can be avoided by forcing the use of the standard make.
There have been several reports including your very informative one
about the problem on making DeleGate/4.7.1. Just as you pointed out,
the problem occurs when you use GNUmake and do make at the top
directory of DeleGate, so you can avoid it by using the standard make
or do make at src/ directory (or invoke make with -s option).
I found out that this problem is caused by GNUmake with strange
policy which automatically insert "-w" flag in MAKEFLAGS environment
variable which is not negated with "-s" option in command line.
So I did patch as enclosed at the end of this message.
Yutaka Sato <email@example.com> http://www.etl.go.jp/~ysato/ @ @
Computer Science Division, Electrotechnical Laboratory ( - )
1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan _< >_
*** ../dist/delegate5.7.1/maker/mkmake.c Mon Oct 26 19:42:02 1998
--- mkmake.c Thu Oct 29 14:10:42 1998
*** 21,26 ****
--- 21,27 ----
extern FILE *tmpfile();
+ extern char *getenv();
#define MKMKMK_EXE "mkmkmk.exe"
#define SRCFILE_LIST "srcfiles"
*** 488,494 ****
--- 489,500 ----
+ char *env;
+ /* to ignore -w flag of GNUmake ... */
+ if( env = getenv("MAKEFLAGS") ) *env = 0;
+ if( env = getenv("MFLAGS") ) *env = 0;
sprintf(lscom,"%s %s %s",MAKE,BESILENT,SRCFILE_LIST);
dp = libsrcs;