summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2017-07-16 21:46:31 +0200
committerJens Axboe <axboe@kernel.dk>2017-07-16 14:02:51 -0600
commit785e49c659023df1735bff195ad4ba133ebd23a7 (patch)
tree8dd662e89dd01af1fe9b0fe4cc1d139a70c76cab /Makefile
parent11215231aa1095064dc21246dc299f9e0b0ae51e (diff)
build: Sort file list
to make build reproducible. Because filesystems/readdir returns entries in underministic order and the linker orders functions depending on input order the resulting fio binary differed across builds (which we do in disposable VMs for openSUSE) See https://reproducible-builds.org/ for why this matters. Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bef930f..e8ea6cb 100644
--- a/Makefile
+++ b/Makefile
@@ -36,8 +36,8 @@ ifdef CONFIG_GFIO
PROGS += gfio
endif
-SOURCE := $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/crc/*.c)) \
- $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/lib/*.c)) \
+SOURCE := $(sort $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/crc/*.c)) \
+ $(patsubst $(SRCDIR)/%,%,$(wildcard $(SRCDIR)/lib/*.c))) \
gettime.c ioengines.c init.c stat.c log.c time.c filesetup.c \
eta.c verify.c memory.c io_u.c parse.c mutex.c options.c \
smalloc.c filehash.c profile.c debug.c engines/cpu.c \