From: Florian Weimer Date: Tue, 20 Sep 2016 08:41:04 +0000 (+0200) Subject: sysd-rules: Cut down the number of rtld-% pattern rules X-Git-Tag: glibc-2.25~524 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e68c8d2757f05d1817d95d66cd3f2c2acc538b34;p=thirdparty%2Fglibc.git sysd-rules: Cut down the number of rtld-% pattern rules rtld only needs shared objects, so the other patterns are pointless and significantly increase the work make has to perform while identifying which pattern rule to apply. --- diff --git a/ChangeLog b/ChangeLog index 27584824d86..2214b93815a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-09-20 Florian Weimer + + * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for + .os objects. + 2016-09-19 Tulio Magno Quites Machado Filho [BZ #20615] diff --git a/scripts/sysd-rules.awk b/scripts/sysd-rules.awk index 69af400e58c..c82e8fd607b 100644 --- a/scripts/sysd-rules.awk +++ b/scripts/sysd-rules.awk @@ -50,6 +50,10 @@ BEGIN { split(pattern, td, ":"); target_pattern = td[1]; dep_pattern = td[2]; + # rtld objects are always PIC. + if (target_pattern ~ /^rtld/ && o != ".os") { + continue; + } if (target_pattern == "%") { command_suffix = ""; } else {