[gcab] build-sys: fix gcab linking on Debian-like



commit 034d8ebbf89528cb82ae6d15cf512b476080248e
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Sun Oct 12 10:09:11 2014 +0200

    build-sys: fix gcab linking on Debian-like
    
    Debian uses a troublesome libtool patch that disables library
    dependency (link_all_deplibs=no). The gcab binary fails to link
    with missing glib symbols. Let's link to it then.
    
    See also:
    http://stackoverflow.com/questions/11802727/libtool-doesnt-provide-library-dependencies-to-link
    
    Reported by Daniel Espinosa <esodan gmail com>

 Makefile.am |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 769fbf4..41a3c32 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -68,7 +68,10 @@ bin_PROGRAMS = gcab
 gcab_SOURCES =                                 \
        gcab.c                                  \
        $(NULL)
-gcab_LDADD = libgcab-1.0.la
+gcab_LDADD =                                    \
+       $(GLIB_LIBS)                            \
+       libgcab-1.0.la                          \
+       $(NULL)
 
 GCAB_ENUMS =                                   \
        libgcab/gcab-enums.c                    \


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