diff options
Diffstat (limited to 'debian/patches/mk-sort-list-of-shared-objects-in-linker-script.patch')
-rw-r--r-- | debian/patches/mk-sort-list-of-shared-objects-in-linker-script.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/mk-sort-list-of-shared-objects-in-linker-script.patch b/debian/patches/mk-sort-list-of-shared-objects-in-linker-script.patch new file mode 100644 index 00000000..d64a233c --- /dev/null +++ b/debian/patches/mk-sort-list-of-shared-objects-in-linker-script.patch @@ -0,0 +1,27 @@ +Description: mk: sort list of shared objects in linker script + +The output of wildcard might not be stable and depend on the +filesystem and other factors. +This means the content libdpdk.so linker script might change between +builds from the same sources. +Run the list through sort to ensure reproducibility. + +Origin: http://dpdk.org/dev/patchwork/patch/27507/ +Forwarded: yes +Author: Luca Boccassi <luca.boccassi@gmail.com> +Last-Update: 2017-08-10 +--- + mk/rte.combinedlib.mk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/mk/rte.combinedlib.mk ++++ b/mk/rte.combinedlib.mk +@@ -42,7 +42,7 @@ endif + RTE_LIBNAME := dpdk + COMBINEDLIB := lib$(RTE_LIBNAME)$(EXT) + +-LIBS := $(filter-out $(COMBINEDLIB), $(notdir $(wildcard $(RTE_OUTPUT)/lib/*$(EXT)))) ++LIBS := $(filter-out $(COMBINEDLIB), $(sort $(notdir $(wildcard $(RTE_OUTPUT)/lib/*$(EXT))))) + + all: FORCE + $(Q)echo "GROUP ( $(LIBS) )" > $(RTE_OUTPUT)/lib/$(COMBINEDLIB) |