summaryrefslogtreecommitdiff
blob: 9656cce88d51e02c072fb41436a9b950ddcafd71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Fix build sys-libs/ncurses[tinfo]

Bug: https://bugs.gentoo.org/690348

--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@
 #CLOCK	    = -DCLOCK_SUPPORT # Experimental!
 READLINE    = -DREADLINE_SUPPORT
 CFLAGS      += -D_GNU_SOURCE $(COLOR) $(CLOCK) $(READLINE) $(ADD_CFLAGS)
-LDFLAGS     += -lncurses -lreadline
+LDFLAGS     += `pkg-config --libs ncurses` -lreadline
 
 ###########################
 # LINUX with Wide character support (testet with ncurses 5.4)