summaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-08-26 19:22:51 (GMT)
committerYann Collet <cyan@fb.com>2017-08-26 19:22:51 (GMT)
commitc4d6884cd82fddbbdce015750e574fd02af36a94 (patch)
tree3adb3dae0efa764a0e8b4b24333398728e6d6190 /lib/Makefile
parentd2306b836e8055ee14e0a239ad8ef44dc5100374 (diff)
downloadlz4-c4d6884cd82fddbbdce015750e574fd02af36a94.zip
lz4-c4d6884cd82fddbbdce015750e574fd02af36a94.tar.gz
lz4-c4d6884cd82fddbbdce015750e574fd02af36a94.tar.bz2
build: source files sorted in a FS independent manner
to be more compatible with reproducible builds. patch inspired by @bmwiedemann
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 9abb699..ed546dd 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -47,11 +47,12 @@ BUILD_STATIC:=yes
CPPFLAGS+= -DXXH_NAMESPACE=LZ4_
CFLAGS ?= -O3
DEBUGFLAGS:= -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
- -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wundef \
- -Wpointer-arith -Wstrict-aliasing=1
+ -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \
+ -Wundef -Wpointer-arith -Wstrict-aliasing=1
CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
FLAGS = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
+SRCFILES := $(sort $(wildcard *.c))
# OS X linker doesn't support -soname, and use different extension