[PATCH] Add missing library dep

Federico G. Schwindt fgsch at lodoss.net
Mon Jan 20 16:46:42 CET 2014


Hi,

  The diff below adds rt to the libvarnishapi dependencies if rt is required.
  Makes linking against libvarnishapi happy.

  OK?

  f.-

objdump output before:

  Dynamic Section:
    NEEDED               libpcre.so.3
    NEEDED               libpthread.so.0
    NEEDED               libc.so.6
    SONAME               libvarnishapi.so.1

And after:

  Dynamic Section:
    NEEDED               libpcre.so.3
    NEEDED               librt.so.1
    NEEDED               libpthread.so.0
    NEEDED               libc.so.6
    SONAME               libvarnishapi.so.1

diff --git a/lib/libvarnishapi/Makefile.am b/lib/libvarnishapi/Makefile.am
index fce096d..9c96d39 100644
--- a/lib/libvarnishapi/Makefile.am
+++ b/lib/libvarnishapi/Makefile.am
@@ -42,7 +42,7 @@ libvarnishapi_la_SOURCES = \
 libvarnishapi_la_CFLAGS = \
 	-DVARNISH_STATE_DIR='"${VARNISH_STATE_DIR}"'
 
-libvarnishapi_la_LIBADD = @PCRE_LIBS@
+libvarnishapi_la_LIBADD = @PCRE_LIBS@ @RT_LIBS@
 
 if HAVE_LD_VERSION_SCRIPT
 libvarnishapi_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libvarnishapi.map



More information about the varnish-dev mailing list