From 49e6a2481a08e02b0bbd0fa27d9ae0d989a5639a Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Tue, 3 Feb 2015 03:23:40 +0800 Subject: [PATCH] Add -fPIC to libzeitgeist-internal.la and libzeitgeist_datamodel-2.0.la It is needed because libzeitgeist-2.0.la is used as a shared library, which requires all dependencies be built as PIC. --- libzeitgeist/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libzeitgeist/Makefile.am b/libzeitgeist/Makefile.am index 9af0cb4..cd27fb5 100644 --- a/libzeitgeist/Makefile.am +++ b/libzeitgeist/Makefile.am @@ -47,6 +47,7 @@ libzeitgeist_internal_la_VALAFLAGS = \ -H zeitgeist-internal.h \ $(NULL) +libzeitgeist_internal_la_CFLAGS = -fPIC libzeitgeist_internal_la_LIBADD = $(ZEITGEIST_LIBS) libzeitgeist_internal_la_LDFLAGS = -avoid-version -non_shared -static @@ -56,6 +57,7 @@ libzeitgeist_datamodel_2_0_la_VALAFLAGS = \ --library zeitgeist-2.0 \ $(NULL) +libzeitgeist_datamodel_2_0_la_CFLAGS = -fPIC libzeitgeist_datamodel_2_0_la_LIBADD = $(ZEITGEIST_LIBS) libzeitgeist_datamodel_2_0_la_LDFLAGS = -avoid-version -non_shared -static -- 2.2.2