commit:     79fc4e53c5ce05518a477b059400ea866d7d69e9
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  9 02:12:06 2019 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Fri Aug  9 02:13:38 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79fc4e53

games-util/wit: fix build failures due to ncurses linking

Closes: https://bugs.gentoo.org/690222

Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>

 games-util/wit/files/wit-3.02a-makefile.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-util/wit/files/wit-3.02a-makefile.patch 
b/games-util/wit/files/wit-3.02a-makefile.patch
index 7d3be3fbd57..a0dea1405a6 100644
--- a/games-util/wit/files/wit-3.02a-makefile.patch
+++ b/games-util/wit/files/wit-3.02a-makefile.patch
@@ -1,5 +1,5 @@
 Don't link libdl into wfuse as it's unnecessary, use system bzip2, respect user
-CFLAGS, and use verbose build output.
+CFLAGS, use pkgconfig to determine ncurses libs, and use verbose build output.
 
 --- wiimms-iso-tools.source-3.02a/Makefile
 +++ wiimms-iso-tools.source-3.02a/Makefile
@@ -40,7 +40,7 @@ CFLAGS, and use verbose build output.
   LIBS         += -lz
  endif
 -LIBS          += -lm -lncurses $(XLIBS)
-+LIBS          += -lm -lncurses -lbz2 $(XLIBS)
++LIBS          += -lm $(shell pkg-config --libs ncurses) -lbz2 $(XLIBS)
  
  DISTRIB_RM    = ./wit-v$(VERSION)-r
  DISTRIB_BASE  = wit-v$(VERSION)-r$(REVISION_NEXT)

Reply via email to