[PATCH 1/2] src/Makefile.am: use pkg-config to include glib

Alberto Milone alberto.milone at canonical.com
Mon Jul 28 15:23:17 UTC 2014


---
 src/Makefile.am | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index ce0b31e..d6630c6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -11,8 +11,7 @@ AM_CPPFLAGS = \
 	-I$(top_srcdir)/src/acpica/source/include \
 	-I$(top_srcdir)/src/acpica/source/compiler \
 	-I$(top_srcdir)/efi_runtime \
-	-pthread -I/usr/include/glib-2.0 \
-	-I/usr/lib/x86_64-linux-gnu/glib-2.0/include \
+	-pthread $(shell pkg-config --cflags glib-2.0) \
 	-Wall -Werror -Wextra
 
 bin_PROGRAMS = fwts
@@ -98,6 +97,6 @@ fwts_LDFLAGS = -lm
 
 fwts_LDADD = \
 	-L$(top_builddir)/src/acpica -lfwtsacpica \
-	-Llib/src -lfwts -lgio-2.0 -lgobject-2.0 -lglib-2.0
+	-Llib/src -lfwts $(shell pkg-config --libs glib-2.0)
 
 man_MANS = ../doc/fwts.1 ../doc/fwts-collect.1 ../doc/fwts-frontend-text.1
-- 
1.9.1




More information about the fwts-devel mailing list