Blame SOURCES/varnish-5.1.1.fix_ld_library_path_in_doc_build.patch

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