sys-process/latencytop: Fix build with recent ncurses
authorJan Kundrát <jkt@gentoo.org>
Tue, 6 Dec 2016 00:52:01 +0000 (01:52 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 6 Dec 2016 13:52:09 +0000 (14:52 +0100)
...because the `tinfow` was not getting linked:

  x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -ggdb
  -Wno-sign-compare -Wl,-O1 -Wl,--as-needed latencytop.o text_display.o
  translate.o fsync.o -o latencytop `x86_64-pc-linux-gnu-pkg-config
  --libs glib-2.0` -lncursesw
  /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld:
  text_display.o: undefined reference to symbol 'curs_set'
  /lib64/libtinfow.so.6: error adding symbols: DSO missing from command line
Closes: https://github.com/gentoo/gentoo/pull/3028

sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch

index c33c127dab6b5d864a76bf9e9424e74c5ff54bc7..8910e32bbc2bc451b43ff0e7093099c6c79bfb65 100644 (file)
@@ -30,7 +30,7 @@ index de24551..9a3cc05 100644
 +override CFLAGS   += -Wno-sign-compare
 +override CPPFLAGS += `$(PKG_CONFIG) --cflags glib-2.0`
 +LDFLAGS ?= -Wl,--as-needed
-+LDADD    = `$(PKG_CONFIG) --libs glib-2.0` -lncursesw
++LDADD    = `$(PKG_CONFIG) --libs glib-2.0` `$(PKG_CONFIG) --libs ncursesw`
  
  OBJS= latencytop.o text_display.o translate.o fsync.o