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.
This commit is contained in:
Bernhard M. Wiedemann 2019-11-14 16:10:51 +01:00 committed by mrks
parent a4703fec5b
commit e88c1f4518
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ else
LIB_CFLAGS += -fPIC LIB_CFLAGS += -fPIC
LIB_LFLAGS = -shared -o LIB_LFLAGS = -shared -o
endif 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_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_ALL = $(shell find $(SRC) -name '*.cpp' -not -path "$(SRCPARSER)/*") $(shell find $(SRC) -name '*.h' -not -path "$(SRCPARSER)/*")
LIB_OBJ = $(LIB_CPP:%.cpp=%.o) LIB_OBJ = $(LIB_CPP:%.cpp=%.o)