upgpkg: sbcl 2.3.1-1
[arch-packages.git] / traceroute / repos / testing-x86_64 / reproducible-build.patch
blobc00d349220a8f10a792ada2fd17ce47ded05c5d0
1 Author: Reiner Herrmann <reiner@reiner-h.de>
2 Description: Sort lists of libraries/source/object files
3 for deterministic linking order
5 --- a/Make.rules
6 +++ b/Make.rules
7 @@ -136,8 +136,8 @@
8 _libs = $(strip $(foreach _lib,$(LIBDIRS),\
9 $(if $(filter lib%,$(_lib)),\
10 $(patsubst lib%,-l%,$(_lib)),\
11 - $(wildcard $(srcdir)/$(_lib)/$(_lib).so \
12 - $(srcdir)/$(_lib)/$(_lib).a))))
13 + $(sort $(wildcard $(srcdir)/$(_lib)/$(_lib).so \
14 + $(srcdir)/$(_lib)/$(_lib).a)))))
16 override LIBS := $(_libs) -lm $(LIBS)
18 @@ -166,7 +166,7 @@
19 endif
20 endif
22 -sources = $(wildcard *.c)
23 +sources = $(sort $(wildcard *.c))
24 OBJS = $(sources:.c=.$(obj))
27 --- a/default.rules
28 +++ b/default.rules
29 @@ -143,7 +143,7 @@
30 ifeq ($(filter $(TARGET),$(EXEDIRS)),$(TARGET))
32 ifeq ($(filter $(TARGET),$(MODUSERS)),$(TARGET))
33 -MOD_OBJS = $(wildcard $(foreach dir,$(MODDIRS),$(srcdir)/$(dir)/*.o))
34 +MOD_OBJS = $(sort $(wildcard $(foreach dir,$(MODDIRS),$(srcdir)/$(dir)/*.o)))
35 ifeq ($(shared),yes)
36 override LDFLAGS := -rdynamic $(LDFLAGS)
37 endif