build: Link ostree with libarchive
authorJoaquim Rocha <me@joaquimrocha.com>
Mon, 22 Feb 2016 14:02:47 +0000 (15:02 +0100)
committerColin Walters <walters@verbum.org>
Mon, 22 Feb 2016 16:22:24 +0000 (11:22 -0500)
libarchive (when available) is being used in ot-builtin-export.c so it
is necessary to link ostree with it.

https://bugzilla.gnome.org/show_bug.cgi?id=762457

Makefile-ostree.am

index ab4485c65dd3ab8fd9ad7a8b88bb3d4b429eae2e..ff7e372b0ca0b69b7c3279224843bafbe95a8579 100644 (file)
@@ -108,3 +108,8 @@ ostree_SOURCES += \
 ostree_CFLAGS += $(OT_INTERNAL_SOUP_CFLAGS)
 ostree_LDADD += $(OT_INTERNAL_SOUP_LIBS)
 endif
+
+if USE_LIBARCHIVE
+ostree_CFLAGS += $(OT_DEP_LIBARCHIVE_CFLAGS)
+ostree_LDADD += $(OT_DEP_LIBARCHIVE_LIBS)
+endif