From 30fd21864b819ba723b5480a572b7d329e1a8b73 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 21 Jan 2017 15:33:39 +0100 Subject: [PATCH] Makefile: sort objects for deterministic linking order Patch by Reiner Herrmann --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2035b0d..97bb646 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ CFLAGS+=$(EXTRA_CFLAGS) # YAJL_MAJOR from that file to decide which code path should be used. CFLAGS += -idirafter yajl-fallback -OBJS:=$(wildcard src/*.c *.c) +OBJS:=$(sort $(wildcard src/*.c *.c)) OBJS:=$(OBJS:.c=.o) ifeq ($(OS),OpenBSD) -- 2.39.5