From d68887eff1c2013e0e7700dba781921bff5a99a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Bienven=C3=BCe?= Date: Sat, 15 Oct 2016 14:49:02 +0200 Subject: [PATCH] Sort *.o files Build libs with fixed order *.o files, to ger reproducible build. Gbp-Pq: Name Sort-.o-files.patch --- Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index edcb82c..edb1a91 100644 --- a/Makefile.in +++ b/Makefile.in @@ -185,7 +185,7 @@ shlib: $(LIB) rm -f lib$(PACKAGE).tmp/xt*.o; \ rm -f lib$(PACKAGE).tmp/tcl*.o; \ CC='$(CC)' CXX=$(CXX) \ - ./mklib -ldflags "$(LDFLAGS)" -o $(PACKAGE) lib$(PACKAGE).tmp/*.o; \ + ./mklib -ldflags "$(LDFLAGS)" -o $(PACKAGE) `LC_ALL=C ls lib$(PACKAGE).tmp/*.o`; \ rm -rf lib$(PACKAGE).tmp) mingw-dll: $(LIBOBJS) @@ -204,7 +204,7 @@ shtclxpa: tclxpa @(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \ (cd $(PACKAGE)tmp && ar x ../libtclxpa.a); \ CC='$(CC)' CXX='$(CXX)' \ - ./mklib -ldflags "$(LDFLAGS)" -o tclxpa -L. -lxpa $(PACKAGE)tmp/*.o -ltclstub; \ + ./mklib -ldflags "$(LDFLAGS)" -o tclxpa -L. -lxpa `LC_ALL=C ls $(PACKAGE)tmp/*.o` -ltclstub; \ rm -rf $(PACKAGE)tmp; ) diff: -- 2.30.2