summaryrefslogtreecommitdiff
blob: eb623d67b1336aa622d065cdf3033b8e36e05913 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,7 @@
 SRC		+= network.c
 SRC		+= protocol_parser.c
 
-LIBS		= -lncurses -lm -luwifi
+LIBS		= $(shell $(PKG_CONFIG) --libs ncurses ) -lm -luwifi
 LDFLAGS		+= -Wl,-rpath,/usr/local/lib
 
 INCLUDES	= -I.