aboutsummaryrefslogtreecommitdiff
path: root/scripts/sysd-rules.awk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-06 04:14:56 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-09 04:19:17 -0400
commitd6d20de8b7ff6da6f3d29c5edb0ae3070f997f30 (patch)
tree180507c9f03b0eb48e852f08826743a6d31b5e80 /scripts/sysd-rules.awk
parent2c61c19f80e21743ef36bc53597ba893d4836dfc (diff)
downloadglibc-d6d20de8b7ff6da6f3d29c5edb0ae3070f997f30.tar
glibc-d6d20de8b7ff6da6f3d29c5edb0ae3070f997f30.tar.gz
glibc-d6d20de8b7ff6da6f3d29c5edb0ae3070f997f30.tar.bz2
glibc-d6d20de8b7ff6da6f3d29c5edb0ae3070f997f30.zip
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
Diffstat (limited to 'scripts/sysd-rules.awk')
-rw-r--r--scripts/sysd-rules.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sysd-rules.awk b/scripts/sysd-rules.awk
index cc143345c6..cebc9d3e1b 100644
--- a/scripts/sysd-rules.awk
+++ b/scripts/sysd-rules.awk
@@ -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 ":";