git » libfiu » commit 444eab6

Sort modules to ensure reproducible order in binary.

author Chris Lamb
2016-10-23 11:28:53 UTC
committer Alberto Bertogli
2016-11-01 19:41:51 UTC
parent 60d8a3d33d37f669f6abc43226cf14d65397e445

Sort modules to ensure reproducible order in binary.

preload/posix/Makefile +2 -2

diff --git a/preload/posix/Makefile b/preload/posix/Makefile
index 4355829..d63ef5d 100644
--- a/preload/posix/Makefile
+++ b/preload/posix/Makefile
@@ -24,11 +24,11 @@ PREFIX=/usr/local
 INSTALL=install
 
 
-MODS = $(wildcard modules/*.mod)
+MODS = $(sort $(wildcard modules/*.mod))
 GEN_C = $(addsuffix .c,$(MODS))
 GEN_OBJS = $(addsuffix .o,$(MODS))
 GEN_FL = $(addsuffix .fl,$(MODS))
-CUSTOM_OBJS = $(patsubst %.c,%.o,$(wildcard modules/*.custom.c))
+CUSTOM_OBJS = $(patsubst %.c,%.o,$(sort $(wildcard modules/*.custom.c)))
 OBJS = codegen.o $(GEN_OBJS) $(CUSTOM_OBJS)