- makedumpfile-__cpu_online_mask-symbol.patch: Support symbol __cpu_online_mask (FATE#323473, bsc#1070291). - makedumpfile-vtop4_x86_64_pagetable.patch: Introduce vtop4_x86_64_pagetable (FATE#323473, bsc#1070291). - makedumpfile-fix-KASLR-for-sadump.patch: Fix a KASLR problem of sadump (FATE#323473, bsc#1070291). - makedumpfile-fix-KASLR-for-sadump-while-kdump.patch: sadump: Fix a KASLR problem of sadump while kdump is working (FATE#323473, bsc#1070291). OBS-URL: https://build.opensuse.org/request/show/562833 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/makedumpfile?expand=0&rev=113
33 lines
989 B
Diff
33 lines
989 B
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(-)
|
|
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -67,6 +67,8 @@ LIBS := -lsnappy $(LIBS)
|
|
CFLAGS += -DUSESNAPPY
|
|
endif
|
|
|
|
+TINFOLIB = -ltinfo
|
|
+
|
|
LIBS := -lpthread $(LIBS)
|
|
|
|
all: makedumpfile
|
|
@@ -90,7 +92,7 @@ makedumpfile: $(SRC_BASE) $(OBJ_PART) $(
|
|
gzip -c ./makedumpfile.conf.5 > ./makedumpfile.conf.5.gz
|
|
|
|
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.gz makedumpfile.conf.5.gz
|