From 2d2af1d243d6a0823acc607522d2bff76fb5b05c Mon Sep 17 00:00:00 2001 From: RadoslavL <63926126+RadoslavL@users.noreply.github.com> Date: Thu, 16 Jun 2022 17:13:56 +0300 Subject: [PATCH] Fixed an issue regarding compiling on Gentoo There is an issue regarding compiling pacman4console on Gentoo. The tinfo library has been removed from ncurses and is a seperate library, but this project does not include it in the compilation and that makes it fail at the linker. Adding "-ltinfo" to the Makefile fixes it. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c261974..71ff1e4 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ bindir=$(prefix)/bin datarootdir=$(prefix)/share all: - gcc pacman.c -o pacman -DDATAROOTDIR=\"$(datarootdir)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses - gcc pacmanedit.c -o pacmanedit -DDATAROOTDIR=\"$(datarootdir)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses + gcc pacman.c -o pacman -DDATAROOTDIR=\"$(datarootdir)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses -ltinfo + gcc pacmanedit.c -o pacmanedit -DDATAROOTDIR=\"$(datarootdir)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses -ltinfo install: all mkdir -p $(DESTDIR)$(bindir)