From e68c8d2757f05d1817d95d66cd3f2c2acc538b34 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 20 Sep 2016 10:41:04 +0200 Subject: 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. --- scripts/sysd-rules.awk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/sysd-rules.awk b/scripts/sysd-rules.awk index 69af400e58..c82e8fd607 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 { -- cgit 1.4.1