From 7defee6ad60d16dc762c110f67ec9074cbb4039a Mon Sep 17 00:00:00 2001 From: Thomas Frauendorfer | Miray Software Date: Wed, 17 Mar 2021 10:49:49 +0100 Subject: Sort input file names in lib/Makefile The order in which the foreach() returns files differes from Debian on WSL1 and Debian running natively. When shim is build on these two platforms the resulting binaries differ. This patch manually sorts the input file list to create identical binaries. Signed-off-by: Thomas Frauendorfer | Miray Software --- lib/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Makefile b/lib/Makefile index 0d2d0a9d..6d83f789 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,6 +1,7 @@ TARGET = lib.a -LIBFILES = $(foreach x,$(wildcard *.c),$(patsubst %.c,%.o,$(x))) +LIBFILES_UNSORTED := $(foreach x,$(wildcard *.c),$(patsubst %.c,%.o,$(x))) +LIBFILES := $(sort $(LIBFILES_UNSORTED)) CRYPTDIR = $(TOPDIR)/Cryptlib -- cgit v1.2.3