52e6b5a5f5a1399c9a78ef72c7655bee4545095c
[deb_dpdk.git] / debian / patches / mk-sort-list-of-shared-objects-in-linker-script.patch
1 Description: mk: sort list of shared objects in linker script
2
3 The output of wildcard might not be stable and depend on the
4 filesystem and other factors.
5 This means the content libdpdk.so linker script might change between
6 builds from the same sources.
7 Run the list through sort to ensure reproducibility.
8
9 Origin: http://dpdk.org/dev/patchwork/patch/25633/
10 Forwarded: yes
11 Author: Luca Boccassi <luca.boccassi@gmail.com>
12 Last-Update: 2017-06-22
13 ---
14  mk/rte.combinedlib.mk | 2 +-
15  1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/mk/rte.combinedlib.mk b/mk/rte.combinedlib.mk
18 index 449358b33..2ab7ee8a1 100644
19 --- a/mk/rte.combinedlib.mk
20 +++ b/mk/rte.combinedlib.mk
21 @@ -42,7 +42,7 @@ endif
22  RTE_LIBNAME := dpdk
23  COMBINEDLIB := lib$(RTE_LIBNAME)$(EXT)
24  
25 -LIBS := $(filter-out $(COMBINEDLIB), $(notdir $(wildcard $(RTE_OUTPUT)/lib/*$(EXT))))
26 +LIBS := $(filter-out $(COMBINEDLIB), $(sort $(notdir $(wildcard $(RTE_OUTPUT)/lib/*$(EXT)))))
27  
28  all: FORCE
29         $(Q)echo "GROUP ( $(LIBS) )" > $(RTE_OUTPUT)/lib/$(COMBINEDLIB)
30 -- 
31 2.11.0
32