100-honour-copts.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. From 90762a9b8d9a50b6176f10bd6c2e2b9501117561 Mon Sep 17 00:00:00 2001
  2. From: Karl Vogel <karl.vogel@gmail.com>
  3. Date: Tue, 14 Jul 2015 11:05:33 +0200
  4. Subject: [PATCH] Include environment variable GCC_HONOUR_COPTS in hash.
  5. The libreCMC patch, 910-mbsd_multi.patch, to GCC adds an extra
  6. compilation flag, -fhonour-copts, which is influenced by an
  7. environment variable called GCC_HONOUR_COPTS.
  8. Include this environment var in the hash calculation as otherwise
  9. the gcc stdout warning from a previous compilation might be shown
  10. where, even when GCC_HONOUR_COPTS is in 's'ilent mode.
  11. Signed-off-by: Karl Vogel <karl.vogel@gmail.com>
  12. ---
  13. ccache.c | 1 +
  14. 1 file changed, 1 insertion(+)
  15. diff --git a/ccache.c b/ccache.c
  16. index e41af13..b736a9c 100644
  17. --- a/ccache.c
  18. +++ b/ccache.c
  19. @@ -965,6 +965,7 @@ calculate_object_hash(struct args *args, struct mdfour *hash, int direct_mode)
  20. "CPLUS_INCLUDE_PATH",
  21. "OBJC_INCLUDE_PATH",
  22. "OBJCPLUS_INCLUDE_PATH", /* clang */
  23. + "GCC_HONOUR_COPTS",
  24. NULL
  25. };
  26. for (p = envvars; *p != NULL ; ++p) {
  27. --
  28. 1.9.1