From dd8878b0fbef7fd5443fae382d613ae5772e1561 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Mon, 23 Apr 2012 00:37:52 +0200 Subject: [PATCH] Link to gthread --- config.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config.mk b/config.mk index 0001c36..5fa76ef 100644 --- a/config.mk +++ b/config.mk @@ -42,6 +42,9 @@ RSTTOMAN ?= /usr/bin/rst2man GTK_INC ?= $(shell pkg-config --cflags gtk+-${ZATHURA_GTK_VERSION}.0) GTK_LIB ?= $(shell pkg-config --libs gtk+-${ZATHURA_GTK_VERSION}.0 gthread-2.0) +GTHREAD_INC ?= $(shell pkg-config --cflags gthread-2.0) +GTHREAD_LIB ?= $(shell pkg-config --libs gthread-2.0) + GIRARA_INC ?= $(shell pkg-config --cflags girara-gtk${ZATHURA_GTK_VERSION}) GIRARA_LIB ?= $(shell pkg-config --libs girara-gtk${ZATHURA_GTK_VERSION}) @@ -53,8 +56,8 @@ endif #set it to an empty value if you don't need to link against ld for dlopen and friends DL_LIB ?= -ldl -INCS = ${GIRARA_INC} ${GTK_INC} -LIBS = ${GIRARA_LIB} ${GTK_LIB} ${DL_LIB} -lpthread -lm +INCS = ${GIRARA_INC} ${GTK_INC} ${GTHREAD_INC} +LIBS = ${GIRARA_LIB} ${GTK_LIB} ${GTHREAD_LIB} ${DL_LIB} -lpthread -lm # flags CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length -Wextra $(INCS)