Blame SOURCES/varnish-5.1.1.fix_ld_library_path_in_doc_build.patch

beffc1
diff --git a/doc/sphinx/Makefile.in b/doc/sphinx/Makefile.in
beffc1
index 0819064..11e4ba2 100644
beffc1
--- a/doc/sphinx/Makefile.in
beffc1
+++ b/doc/sphinx/Makefile.in
beffc1
@@ -659,37 +659,47 @@ include/counters.rst: $(top_srcdir)/lib/libvcc/vsctool.py $(COUNTERS)
beffc1
 # XXX add varnishstat here when it's been _opt2rst'ed
beffc1
 
beffc1
 include/varnishncsa_options.rst: $(top_builddir)/bin/varnishncsa/varnishncsa
beffc1
+	LD_LIBRARY_PATH=$(top_builddir)/lib/libvarnishapi/.libs \
beffc1
 	$(top_builddir)/bin/varnishncsa/varnishncsa --options > ${@}_
beffc1
 	mv ${@}_ ${@}
beffc1
 include/varnishncsa_synopsis.rst: $(top_builddir)/bin/varnishncsa/varnishncsa
beffc1
+	LD_LIBRARY_PATH=$(top_builddir)/lib/libvarnishapi/.libs \
beffc1
 	$(top_builddir)/bin/varnishncsa/varnishncsa --synopsis > ${@}_
beffc1
 	mv ${@}_ ${@}
beffc1
 
beffc1
 include/varnishlog_options.rst: $(top_builddir)/bin/varnishlog/varnishlog
beffc1
+	LD_LIBRARY_PATH=$(top_builddir)/lib/libvarnishapi/.libs \
beffc1
 	$(top_builddir)/bin/varnishlog/varnishlog --options > ${@}_
beffc1
 	mv ${@}_ ${@}
beffc1
 include/varnishlog_synopsis.rst: $(top_builddir)/bin/varnishlog/varnishlog
beffc1
+	LD_LIBRARY_PATH=$(top_builddir)/lib/libvarnishapi/.libs \
beffc1
 	$(top_builddir)/bin/varnishlog/varnishlog --synopsis > ${@}_
beffc1
 	mv ${@}_ ${@}
beffc1
 
beffc1
 include/varnishtop_options.rst: $(top_builddir)/bin/varnishtop/varnishtop
beffc1
+	LD_LIBRARY_PATH=$(top_builddir)/lib/libvarnishapi/.libs \
beffc1
 	$(top_builddir)/bin/varnishtop/varnishtop --options > ${@}_
beffc1
 	mv ${@}_ ${@}
beffc1
 include/varnishtop_synopsis.rst: $(top_builddir)/bin/varnishtop/varnishtop
beffc1
+	LD_LIBRARY_PATH=$(top_builddir)/lib/libvarnishapi/.libs \
beffc1
 	$(top_builddir)/bin/varnishtop/varnishtop --synopsis > ${@}_
beffc1
 	mv ${@}_ ${@}
beffc1
 
beffc1
 include/varnishhist_options.rst: $(top_builddir)/bin/varnishhist/varnishhist
beffc1
+	LD_LIBRARY_PATH=$(top_builddir)/lib/libvarnishapi/.libs \
beffc1
 	$(top_builddir)/bin/varnishhist/varnishhist --options > ${@}_
beffc1
 	mv ${@}_ ${@}
beffc1
 include/varnishhist_synopsis.rst: $(top_builddir)/bin/varnishhist/varnishhist
beffc1
+	LD_LIBRARY_PATH=$(top_builddir)/lib/libvarnishapi/.libs \
beffc1
 	$(top_builddir)/bin/varnishhist/varnishhist --synopsis > ${@}_
beffc1
 	mv ${@}_ ${@}
beffc1
 
beffc1
 include/varnishstat_options.rst: $(top_builddir)/bin/varnishstat/varnishstat
beffc1
+	LD_LIBRARY_PATH=$(top_builddir)/lib/libvarnishapi/.libs \
beffc1
 	$(top_builddir)/bin/varnishstat/varnishstat --options > ${@}_
beffc1
 	mv ${@}_ ${@}
beffc1
 include/varnishstat_synopsis.rst: $(top_builddir)/bin/varnishstat/varnishstat
beffc1
+	LD_LIBRARY_PATH=$(top_builddir)/lib/libvarnishapi/.libs \
beffc1
 	$(top_builddir)/bin/varnishstat/varnishstat --synopsis > ${@}_
beffc1
 	mv ${@}_ ${@}
beffc1