File: reproducible_build.patch

package info (click to toggle)
qtltools 1.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,628 kB
  • ctags: 1,332
  • sloc: cpp: 11,956; makefile: 149; ansic: 51; sh: 39
file content (18 lines) | stat: -rw-r--r-- 788 bytes parent folder | download | duplicates (2)
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)