chdir(1) into a source directory before attempting to determine the
OBJS list. This is needed to crunch any program that relies on the correct .CURDIR setting, e.g. src/bin/csh. Submitted by: Tim Kientzle <kientzle@acm.org>
This commit is contained in:
parent
4447272524
commit
2788f60153
@ -699,7 +699,8 @@ void fillin_program_objs(prog_t *p, char *path)
|
||||
|
||||
fclose(f);
|
||||
|
||||
snprintf(line, MAXLINELEN, "make -f %s crunchgen_objs 2>&1", tempfname);
|
||||
snprintf(line, MAXLINELEN, "cd %s && make -f %s crunchgen_objs 2>&1",
|
||||
p->srcdir, tempfname);
|
||||
if ((f = popen(line, "r")) == NULL) {
|
||||
warn("submake pipe");
|
||||
goterror = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user