From 81aeb569514cfb719ca2f09c2aef6d31a09fa141 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sun, 3 Jul 2016 21:47:13 +0200 Subject: [PATCH] Sort object files for deterministic linking order This is from the Debian reproducible team. Signed-off-by: Sebastian Andrzej Siewior --- makefile.shared | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile.shared b/makefile.shared index 5c02687..47c35d9 100644 --- a/makefile.shared +++ b/makefile.shared @@ -89,7 +89,7 @@ $(OBJECTS): $(HEADERS) $(LTCOMPILE) $(CFLAGS) $(LDFLAGS) -o $@ -c $< $(LIBNAME): $(OBJECTS) - libtool --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) `find . -type f | grep "[.]lo" | xargs` -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) -export-symbols libtfm.symbols + libtool --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) `find . -type f | LC_ALL=C sort | grep "[.]lo" | xargs` -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) -export-symbols libtfm.symbols install: $(LIBNAME) install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)