forked from pool/libkcapi
Marcus Meissner
06fc11f271
Add reproduciblesort.patch to always link .o files in the same order and Add reproducibledate.patch to not add current time to man-pages to fix build-compare OBS-URL: https://build.opensuse.org/request/show/508953 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=12
27 lines
930 B
Diff
27 lines
930 B
Diff
Index: libkcapi-0.13.0/lib/Makefile
|
|
===================================================================
|
|
--- libkcapi-0.13.0.orig/lib/Makefile
|
|
+++ libkcapi-0.13.0/lib/Makefile
|
|
@@ -100,7 +100,7 @@ LIBNAME := lib$(NAME).so.$(LIBVERSION)
|
|
# Define files to be compiled
|
|
#
|
|
###############################################################################
|
|
-C_SRCS := $(wildcard *.c)
|
|
+C_SRCS := $(sort $(wildcard *.c))
|
|
C_OBJS := ${C_SRCS:.c=.o}
|
|
OBJS := $(C_OBJS)
|
|
|
|
Index: libkcapi-0.13.0/apps/Makefile
|
|
===================================================================
|
|
--- libkcapi-0.13.0.orig/apps/Makefile
|
|
+++ libkcapi-0.13.0/apps/Makefile
|
|
@@ -9,7 +9,7 @@ CFLAGS +=-D_FORTIFY_SOURCE=2 -fwrapv --p
|
|
LDFLAGS +=-Wl,-z,relro,-z,now
|
|
|
|
NAME := kcapi-hasher
|
|
-C_SRCS := $(wildcard *.c) $(wildcard ../lib/*.c)
|
|
+C_SRCS := $(sort $(wildcard *.c) $(wildcard ../lib/*.c))
|
|
C_OBJS := ${C_SRCS:.c=.o}
|
|
C_ASM := ${C_SRCS:.c=.s}
|
|
OBJS := $(C_OBJS)
|