[tracker] libtracker-extract: Link against libicu when using it



commit d82b16d7c2f28957e54e694a8e02fe3b72a947e4
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Dec 18 16:39:41 2013 +0100

    libtracker-extract: Link against libicu when using it
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720686

 src/libtracker-extract/Makefile.am |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-extract/Makefile.am b/src/libtracker-extract/Makefile.am
index 4c59921..b7f0df9 100644
--- a/src/libtracker-extract/Makefile.am
+++ b/src/libtracker-extract/Makefile.am
@@ -11,6 +11,12 @@ AM_CPPFLAGS =                                          \
 
 lib_LTLIBRARIES = libtracker-extract- TRACKER_API_VERSION@.la
 
+libtracker_extract_ TRACKER_API_VERSION@_la_LIBADD =   \
+       $(top_builddir)/src/libtracker-sparql-backend/libtracker-sparql- TRACKER_API_VERSION@.la \
+       $(top_builddir)/src/libtracker-common/libtracker-common.la \
+       $(BUILD_LIBS)                                  \
+       $(LIBTRACKER_EXTRACT_LIBS)
+
 libtracker_extractincludedir=$(includedir)/tracker-$(TRACKER_API_VERSION)/libtracker-extract/
 
 libtracker_extract_ TRACKER_API_VERSION@_la_SOURCES =  \
@@ -63,18 +69,16 @@ if HAVE_LIBICU
 libtracker_extract_ TRACKER_API_VERSION@_la_SOURCES += \
        tracker-encoding-libicu.c                      \
        tracker-encoding-libicu.h
+AM_CPPFLAGS +=                                         \
+       $(LIBICU_CFLAGS)
+libtracker_extract_ TRACKER_API_VERSION@_la_LIBADD +=  \
+       $(LIBICU_LIBS)
 endif
 
 libtracker_extract_ TRACKER_API_VERSION@_la_LDFLAGS =  \
        -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
        -export-symbols-regex '^tracker_.*'
 
-libtracker_extract_ TRACKER_API_VERSION@_la_LIBADD =   \
-       $(top_builddir)/src/libtracker-sparql-backend/libtracker-sparql- TRACKER_API_VERSION@.la \
-       $(top_builddir)/src/libtracker-common/libtracker-common.la \
-       $(BUILD_LIBS)                                  \
-       $(LIBTRACKER_EXTRACT_LIBS)
-
 # Introspection foo
 -include $(INTROSPECTION_MAKEFILE)
 INTROSPECTION_GIRS =


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]