You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
831 B
23 lines
831 B
Index: Makefile
|
|
===================================================================
|
|
--- a/Makefile (revision 109)
|
|
+++ b/Makefile (working copy)
|
|
@@ -19,7 +19,7 @@
|
|
|
|
CC ?= gcc
|
|
|
|
-LIBS += -lncurses -lpthread -lrt -lm
|
|
+LIBS += `$(PKG_CONFIG) --libs ncurses` -lpthread -lrt -lm
|
|
INCLUDEFLAGS =
|
|
|
|
BIN = i7z
|
|
@@ -42,7 +42,7 @@
|
|
|
|
#http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644728 for -ltinfo on debian
|
|
static-bin: message $(OBJ)
|
|
- $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJ) -static-libgcc -DNCURSES_STATIC -static -lpthread -lncurses -lrt -lm -ltinfo
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJ) -static-libgcc -DNCURSES_STATIC -static -lpthread `$(PKG_CONFIG) --static --libs ncurses` -lrt -lm
|
|
|
|
# perfmon-bin: message $(OBJ)
|
|
# $(CC) $(CFLAGS) $(LDFLAGS) -o $(PERFMON-BIN) perfmon-i7z.c helper_functions.c $(LIBS)
|