aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/02-reproducible-build.patch
blob: f583e365e1ad8ce11d2c87a495e18002d98e8944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Sort object files for deterministic linking order

--- a/Makefile.in
+++ b/Makefile.in
@@ -21,7 +21,7 @@
 MAIN	= @PACKAGE_NAME@.c
 HEADERS	= $(wildcard *.h)
 PURESRC	= $(filter-out $(MAIN),$(wildcard *.c))
-OBJS	= $(PURESRC:.c=.o)
+OBJS	= $(sort $(PURESRC:.c=.o))
 
 %.o: %.c $(HEADERS)
 	@echo ' CC  ' $<