makedumpfile/makedumpfile-override-libtinfo.patch
Petr Tesařík 157c060ed7 Accepting request 676209 from home:ptesarik:branches:Kernel:kdump
- makedumpfile-ppc64-VA-range-SUSE.patch: Use correct l3 index size
  with SLE15-SP1 ppc64le kernels (bsc#1123015).
- Update to 1.6.5
  * Improve support for arm64 system with KASLR
  * Support kernels up to 4.19.4

OBS-URL: https://build.opensuse.org/request/show/676209
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/makedumpfile?expand=0&rev=130
2019-02-14 17:57:03 +00:00

33 lines
1002 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
@@ -66,6 +66,8 @@ LIBS := -lsnappy $(LIBS)
CFLAGS += -DUSESNAPPY
endif
+TINFOLIB = -ltinfo
+
LIBS := -lpthread $(LIBS)
try-run = $(shell set -e; \
@@ -101,7 +103,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