summaryrefslogtreecommitdiffstats
path: root/package/gcc
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2015-10-04 18:26:03 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-10-04 20:21:15 +0200
commit70a61bbfb3922df8a9b323023e7be555cfe1272b (patch)
tree66f2fc80dca15ab806810362887151eef68bb679 /package/gcc
parent40fe3349a7a7adcbbeda9105571f4cb2b9d5dc31 (diff)
downloadbuildroot-70a61bbfb3922df8a9b323023e7be555cfe1272b.tar.gz
buildroot-70a61bbfb3922df8a9b323023e7be555cfe1272b.zip
gcc: sort the patches before they are hashed
$(wildcard ...) in make doesn't sort the files, so the order of the hashed files is not predictable. Therefore, the ccache hash could change from one build to another. We don't want that, so sort the files explicitly. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/gcc')
-rw-r--r--package/gcc/gcc.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk
index 9025cdf6f9..4def65c946 100644
--- a/package/gcc/gcc.mk
+++ b/package/gcc/gcc.mk
@@ -243,10 +243,10 @@ HOST_GCC_COMMON_CCACHE_HASH_FILES += $(DL_DIR)/$(GCC_SOURCE)
# Cfr. PATCH_BASE_DIRS in .stamp_patched, but we catch both versioned and
# unversioned patches unconditionally
HOST_GCC_COMMON_CCACHE_HASH_FILES += \
- $(wildcard \
+ $(sort $(wildcard \
package/gcc/$(GCC_VERSION)/*.patch \
$(addsuffix $((PKG)_RAWNAME)/$(GCC_VERSION)/*.patch,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR))) \
- $(addsuffix $((PKG)_RAWNAME)/*.patch,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR))))
+ $(addsuffix $((PKG)_RAWNAME)/*.patch,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR)))))
ifeq ($(BR2_xtensa),y)
HOST_GCC_COMMON_CCACHE_HASH_FILES += $(HOST_GCC_XTENSA_OVERLAY_TAR)
endif
OpenPOWER on IntegriCloud