- Update to 1.7.1: * support for kernel up to 5.17 * sadump: remove variable length array * print error when reading with unsupported compression - Drop upstreamed makedumpfile-sadump-kaslr-fix-kaslr_offset-calculation.patch OBS-URL: https://build.opensuse.org/request/show/971036 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/makedumpfile?expand=0&rev=164
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From: Petr Tesarik <ptesarik@suse.com>
|
|
Subject: Allow to override the tinfo library used for eppic
|
|
Upstream: never; only needed for compatibility with older ncurses
|
|
|
|
Allow to override the "-ltinfo" linker option with a make variable.
|
|
|
|
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
|
|
|
|
---
|
|
Makefile | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
Index: makedumpfile-1.7.1/Makefile
|
|
===================================================================
|
|
--- makedumpfile-1.7.1.orig/Makefile
|
|
+++ makedumpfile-1.7.1/Makefile
|
|
@@ -82,6 +82,8 @@ CFLAGS += -fsanitize=undefined
|
|
#CFLAGS += -fanalyzer
|
|
endif
|
|
|
|
+TINFOLIB = -ltinfo
|
|
+
|
|
LIBS := $(LIBS) -lpthread
|
|
|
|
try-run = $(shell set -e; \
|
|
@@ -120,7 +122,7 @@ makedumpfile: $(SRC_BASE) $(OBJ_PART) $(
|
|
$(VPATH)makedumpfile.conf.5.in > $(VPATH)makedumpfile.conf.5
|
|
|
|
eppic_makedumpfile.so: extension_eppic.c
|
|
- $(CC) $(CFLAGS) $(LDFLAGS) -shared -rdynamic -o $@ extension_eppic.c -fPIC -leppic -ltinfo
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -rdynamic -o $@ extension_eppic.c -fPIC -leppic ${TINFOLIB}
|
|
|
|
clean:
|
|
rm -f $(OBJ) $(OBJ_PART) $(OBJ_ARCH) makedumpfile makedumpfile.8 makedumpfile.conf.5
|