Use a different variable for linking to the static version of gnutls, so
authorRodney Dawes <dobey@ximian.com>
Fri, 27 Feb 2004 16:15:01 +0000 (16:15 +0000)
committerRodney Dawes <dobey@src.gnome.org>
Fri, 27 Feb 2004 16:15:01 +0000 (16:15 +0000)
2004-02-27  Rodney Dawes  <dobey@ximian.com>

* configure.in:
* libsoup/Makefile.am: Use a different variable for linking to the
static version of gnutls, so we don't pull the .a files into the .pc

Fixes #53346

ChangeLog
configure.in
libsoup/Makefile.am

index 0908ba0..eee2c41 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-02-27  Rodney Dawes  <dobey@ximian.com>
+
+       * configure.in:
+       * libsoup/Makefile.am: Use a different variable for linking to the
+       static version of gnutls, so we don't pull the .a files into the .pc
+
+       Fixes #53346
+
 2004-02-20  Dan Winship  <danw@ximian.com>
 
        * libsoup/soup-message-io.c (read_metadata, read_body_chunk,
index 5a9e00d..4a90561 100644 (file)
@@ -206,6 +206,7 @@ if test "$enable_ssl" != "no"; then
        fi
 fi
 
+LIBGNUTLS_LIBS_STATIC=""
 if test "$enable_ssl" != "no"; then
        AC_DEFINE(HAVE_SSL, 1, [Defined if you have SSL support])
 
@@ -224,12 +225,14 @@ if test "$enable_ssl" != "no"; then
 
        if test "$enable_static_ssl" = "yes"; then
                gnutls_libdir=`$LIBGNUTLS_CONFIG --exec-prefix`/lib
-               LIBGNUTLS_LIBS="$gnutls_libdir/libgnutls.a $gnutls_libdir/libgcrypt.a $libgpg_error_libs_static"
+               LIBGNUTLS_LIBS=""
+               LIBGNUTLS_LIBS_STATIC="$gnutls_libdir/libgnutls.a $gnutls_libdir/libgcrypt.a $libgpg_error_libs_static"
        fi
 fi
 
 AC_SUBST(LIBGNUTLS_CFLAGS)
 AC_SUBST(LIBGNUTLS_LIBS)
+AC_SUBST(LIBGNUTLS_LIBS_STATIC)
 
 dnl ***************
 dnl *** gtk-doc ***
index dd41718..38a79ac 100644 (file)
@@ -54,9 +54,10 @@ lib_LTLIBRARIES = libsoup-2.2.la
 libsoup_2_2_la_LDFLAGS =       \
        -version-info $(SOUP_CURRENT):$(SOUP_REVISION):$(SOUP_AGE)
 
-libsoup_2_2_la_LIBADD =                \
-       $(GLIB_LIBS)            \
-       $(XML_LIBS)             \
+libsoup_2_2_la_LIBADD =                        \
+       $(GLIB_LIBS)                    \
+       $(XML_LIBS)                     \
+       $(LIBGNUTLS_LIBS_STATIC)        \
        $(LIBGNUTLS_LIBS)
 
 libsoup_2_2_la_SOURCES =               \