summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Frauendorfer | Miray Software <tf@miray.de>2021-03-17 10:49:49 +0100
committerPeter Jones <pjones@redhat.com>2021-03-17 11:54:21 -0400
commit7defee6ad60d16dc762c110f67ec9074cbb4039a (patch)
tree262fbb0e943b88996c265546b7c213765cc74406 /lib
parent6fa1c8e6820421a5ca3c422cf8c7a7c6d7851460 (diff)
downloadefi-boot-shim-7defee6ad60d16dc762c110f67ec9074cbb4039a.tar.gz
efi-boot-shim-7defee6ad60d16dc762c110f67ec9074cbb4039a.zip
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 <tf@miray.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile3
1 files changed, 2 insertions, 1 deletions
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