]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Allow overriding of CFLAGS as well as CPPFLAGS for rtld.
authorNick Alcock <nick.alcock@oracle.com>
Sun, 13 Mar 2016 15:16:51 +0000 (15:16 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 10 Apr 2016 03:48:32 +0000 (23:48 -0400)
We need this to pass -fno-stack-protector to all the pieces of rtld in
non-elf/ directories.

ChangeLog
elf/rtld-Rules
scripts/sysd-rules.awk

index 7c01a727c3e65f649fda335c22f0abea32b44d6b..7a20eb3e515754be275e7132ad9f13a57ed70245 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
+
+       * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
+       * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
+       $(CPPFLAGS).
+
 2016-04-09  Khem Raj  <raj.khem@gmail.com>
 
        [BZ #17950]
index 94ca39bff24482ad128f110e6cc51d9faf267340..c1bb50687e4b662a5b4ddab641629122ec76597a 100644 (file)
@@ -90,7 +90,7 @@ else
 
 rtld-compile-command.S = $(compile-command.S) $(rtld-CPPFLAGS)
 rtld-compile-command.s = $(compile-command.s) $(rtld-CPPFLAGS)
-rtld-compile-command.c = $(compile-command.c) $(rtld-CPPFLAGS)
+rtld-compile-command.c = $(compile-command.c) $(rtld-CPPFLAGS) $(rtld-CFLAGS)
 
 # These are the basic compilation rules corresponding to the Makerules ones.
 # The sysd-rules generated makefile already defines pattern rules for rtld-%
index cebc9d3e1b9172c1c26e715f5eaf5a26854cb128..69af400e58ce66c3c48ea65a3130b9f465438333 100644 (file)
@@ -54,7 +54,7 @@ BEGIN {
           command_suffix = "";
         } else {
           prefix = gensub(/%/, "", 1, target_pattern);
-          command_suffix = " $(" prefix  "CPPFLAGS)";
+          command_suffix = " $(" prefix  "CPPFLAGS)" " $(" prefix  "CFLAGS)";
         }
         target = "$(objpfx)" target_pattern o ":";
         if (asm_rules) {