File makedumpfile-override-libtinfo.patch of Package makedumpfile (Revision e4fd878f8851e22041aa2dfa976f2185)
Currently displaying revision e4fd878f8851e22041aa2dfa976f2185 , Show latest
33
1
From: Petr Tesarik <ptesarik@suse.com>
2
Subject: Allow to override the tinfo library used for eppic
3
Upstream: never; only needed for compatibility with older ncurses
4
5
Allow to override the "-ltinfo" linker option with a make variable.
6
7
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
8
9
---
10
Makefile | 4 +++-
11
1 file changed, 3 insertions(+), 1 deletion(-)
12
13
--- a/Makefile
14
+++ b/Makefile
15
16
CFLAGS += -DUSESNAPPY
17
endif
18
19
+TINFOLIB = -ltinfo
20
+
21
LIBS := -lpthread $(LIBS)
22
23
try-run = $(shell set -e; \
24
25
gzip -c ./makedumpfile.conf.5 > ./makedumpfile.conf.5.gz
26
27
eppic_makedumpfile.so: extension_eppic.c
28
- $(CC) $(CFLAGS) $(LDFLAGS) -shared -rdynamic -o $@ extension_eppic.c -fPIC -leppic -ltinfo
29
+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -rdynamic -o $@ extension_eppic.c -fPIC -leppic ${TINFOLIB}
30
31
clean:
32
rm -f $(OBJ) $(OBJ_PART) $(OBJ_ARCH) makedumpfile makedumpfile.8.gz makedumpfile.conf.5.gz
33