06bf1b005f428d225b8571d5d59ff449fc4c366f
[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/25675/
10 Forwarded: yes
11 Author: Luca Boccassi <luca.boccassi@gmail.com>
12 Last-Update: 2017-06-24
13 ---
14  mk/rte.combinedlib.mk | 2 +-
15  1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/mk/rte.combinedlib.mk
18 +++ b/mk/rte.combinedlib.mk
19 @@ -42,7 +42,7 @@ endif
20  RTE_LIBNAME := dpdk
21  COMBINEDLIB := lib$(RTE_LIBNAME)$(EXT)
22  
23 -LIBS := $(filter-out $(COMBINEDLIB), $(notdir $(wildcard $(RTE_OUTPUT)/lib/*$(EXT))))
24 +LIBS := $(filter-out $(COMBINEDLIB), $(sort $(notdir $(wildcard $(RTE_OUTPUT)/lib/*$(EXT)))))
25  
26  all: FORCE
27         $(Q)echo "GROUP ( $(LIBS) )" > $(RTE_OUTPUT)/lib/$(COMBINEDLIB)