File: compilation_order.patch

package info (click to toggle)
sim4 0.0.20121010-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,896 kB
  • sloc: ansic: 8,496; makefile: 31; sh: 15
file content (14 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Compilation order
 Sort c files for compilation, to make the build reproducible.
Author: Alexis Bienvenüe <pado@passoire.fr>

--- sim4-0.0.20121010.orig/Makefile
+++ sim4-0.0.20121010/Makefile
@@ -8,6 +8,6 @@ CFLAGS+=-g -O2 -Wall
 LDLIBS=-lm
  
 sim4:
-	$(CC) -o sim4 -I. $(CFLAGS) *.c $(LDLIBS) $(LDFLAGS)
+	$(CC) -o sim4 -I. $(CFLAGS) `LC_ALL=C ls *.c` $(LDLIBS) $(LDFLAGS)
 clean:
 	rm -f sim4 *.o