From e88c1f4518a16a7c31a1c055bd051d2c14eed1f6 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Thu, 14 Nov 2019 16:10:51 +0100 Subject: [PATCH] Sort the input file list (#133) so that libsqlparser.so.1 builds in a reproducible way in spite of indeterministic filesystem readdir order. See https://reproducible-builds.org/ for why this is good. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5a9d3b7..2564a9c 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ else LIB_CFLAGS += -fPIC LIB_LFLAGS = -shared -o endif -LIB_CPP = $(shell find $(SRC) -name '*.cpp' -not -path "$(SRCPARSER)/*") $(PARSER_CPP) +LIB_CPP = $(sort $(shell find $(SRC) -name '*.cpp' -not -path "$(SRCPARSER)/*") $(PARSER_CPP)) LIB_H = $(shell find $(SRC) -name '*.h' -not -path "$(SRCPARSER)/*") $(PARSER_H) LIB_ALL = $(shell find $(SRC) -name '*.cpp' -not -path "$(SRCPARSER)/*") $(shell find $(SRC) -name '*.h' -not -path "$(SRCPARSER)/*") LIB_OBJ = $(LIB_CPP:%.cpp=%.o)