1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Sort source files for deterministic linking order
Bug-Debian: https://bugs.debian.org/848280
Forwarded: TODO
--- a/Makefile
+++ b/Makefile
@@ -23,8 +23,8 @@ LIB_FLAGS=-Wl,-Bstatic -lz -lgsl -lblas
BFILE=bin/QTLtools
HFILE=$(shell find src -name *.h)
TFILE=$(shell find lib -name *.h)
-CFILE=$(shell find src -name *.cpp)
-OFILE=$(shell for file in `find src -name *.cpp`; do echo obj/$$(basename $$file .cpp).o; done)
+CFILE=$(shell find src -name *.cpp | LC_ALL=C sort)
+OFILE=$(shell for file in `find src -name *.cpp | LC_ALL=C sort`; do echo obj/$$(basename $$file .cpp).o; done)
VPATH=$(shell for file in `find src -name *.cpp`; do echo $$(dirname $$file); done)
#DEFAULT VERSION (I.E. UNIGE DESKTOP RELEASE VERSION)
|