From af04ffedc454380e7db1539fc60fa40080b98c22 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 6 May 2010 12:20:43 -0400 Subject: [PATCH] Use pkg-config to get glib2 CFLAGS. --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c52fc3d..756e382 100644 --- a/Makefile +++ b/Makefile @@ -15,9 +15,7 @@ PERL_LIBS := \ $(shell PERL5LIB= $(PERL) -MExtUtils::Embed -e ldopts) \ $(shell PERL5LIB= $(PERL) -MConfig -e'print "-L$$Config::Config{archlibexp}/CORE";') -GLIB_CFLAGS = -I$(GLIB_PREFIX)/include/glib-2.0 \ - -I$(GLIB_PREFIX)/include/glib-2.0/glib \ - -I$(GLIB_PREFIX)/lib/glib-2.0/include \ +GLIB_CFLAGS = $(shell pkg-config --cflags glib-2.0) \ -I$(PURPLE_PREFIX)/include/libpurple \ -DPURPLE_DISABLE_DEPRECATED \ $(PERL_CFLAGS) -- 2.11.4.GIT