games-util/wit: fix build failures due to ncurses linking
authorTim Harder <radhermit@gentoo.org>
Fri, 9 Aug 2019 02:12:06 +0000 (20:12 -0600)
committerTim Harder <radhermit@gentoo.org>
Fri, 9 Aug 2019 02:13:38 +0000 (20:13 -0600)
Closes: https://bugs.gentoo.org/690222

Signed-off-by: Tim Harder <radhermit@gentoo.org>
games-util/wit/files/wit-3.02a-makefile.patch

index 7d3be3fbd57a61a6ad11e67977e41d476d339094..a0dea1405a6e6e684c6e1979af87ddee3011054d 100644 (file)
@@ -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)