mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
gawk: fix gensub usage
The third arg can either be a string with "g" or "G", or it is a number. The empty string elicits a warning with newer versions like so: gawk: scripts/sysd-rules.awk:56: warning: gensub: third argument `' treated as 1
This commit is contained in:
@ -53,7 +53,7 @@ BEGIN {
|
||||
if (target_pattern == "%") {
|
||||
command_suffix = "";
|
||||
} else {
|
||||
prefix = gensub(/%/, "", "", target_pattern);
|
||||
prefix = gensub(/%/, "", 1, target_pattern);
|
||||
command_suffix = " $(" prefix "CPPFLAGS)";
|
||||
}
|
||||
target = "$(objpfx)" target_pattern o ":";
|
||||
|
Reference in New Issue
Block a user