diff options
author | Ron Yorston <rmy@pobox.com> | 2023-08-24 15:57:14 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-08-24 15:57:14 +0100 |
commit | ac9ff15e24b4eb2413fc3c4c7b6f3bfc1166516c (patch) | |
tree | f561982b59550b845438e1f7cd2893bd6760cf97 | |
parent | 180a05ae7e00bf6a7a89740bba0bde300e34f93d (diff) | |
download | busybox-w32-ac9ff15e24b4eb2413fc3c4c7b6f3bfc1166516c.tar.gz busybox-w32-ac9ff15e24b4eb2413fc3c4c7b6f3bfc1166516c.tar.bz2 busybox-w32-ac9ff15e24b4eb2413fc3c4c7b6f3bfc1166516c.zip |
make: fix .DEFAULT for prerequisite
Commit 4b65e7d9 (Fixes to inference rules) set the N_TARGET flag
for prerequisites being built recursively. That wasn't necessary
for the issue at hand and it lead to other problems.
Undo that part of commit 4b65e7d9.
(GitHub issue #354)
-rw-r--r-- | miscutils/make.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/miscutils/make.c b/miscutils/make.c index a2cd03707..25e3cc15a 100644 --- a/miscutils/make.c +++ b/miscutils/make.c | |||
@@ -2369,7 +2369,6 @@ make(struct name *np, int level) | |||
2369 | } | 2369 | } |
2370 | for (dp = rp->r_dep; dp; dp = dp->d_next) { | 2370 | for (dp = rp->r_dep; dp; dp = dp->d_next) { |
2371 | // Make prerequisite | 2371 | // Make prerequisite |
2372 | dp->d_name->n_flag |= N_TARGET; | ||
2373 | estat |= make(dp->d_name, level + 1); | 2372 | estat |= make(dp->d_name, level + 1); |
2374 | 2373 | ||
2375 | // Make strings of out-of-date prerequisites (for $?), | 2374 | // Make strings of out-of-date prerequisites (for $?), |