$NetBSD: patch-doc_examples_Makefile.in,v 1.2 2025/09/06 09:28:59 he Exp $ Use -Wl,-rpath,$(PATH) and not -Wl,-rpath $(PATH) as the later chokes on gcc --- ./doc/examples/Makefile.in.orig 2020-06-27 02:56:59.896992052 +0200 +++ ./doc/examples/Makefile.in 2020-06-27 02:57:30.454482609 +0200 @@ -885,7 +885,7 @@ uninstall-am: uninstall-dist_doc_example @ENABLE_EXAMPLES_TRUE@ else \ @ENABLE_EXAMPLES_TRUE@ rel_build_subdir="../"; \ @ENABLE_EXAMPLES_TRUE@ fi; \ -@ENABLE_EXAMPLES_TRUE@ $(MAKE) -f dist-files/Makefile CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" AM_CPPFLAGS="$(AM_CPPFLAGS) -I"$${rel_src_subdir}/$(top_srcdir)/include/" -I"$${rel_src_subdir}/$(top_srcdir)/src/" -I"$${rel_build_subdir}$(top_builddir)/include/" -I"$${rel_build_subdir}$(top_builddir)/include/src/"" CFLAGS="$(CFLAGS)" AM_CFLAGS="$(AM_CFLAGS)" LDFLAGS="$(LDFLAGS)" AM_LDFLAGS="$(AM_LDFLAGS) -L../../../src/.libs/ -Wl,-rpath "$(PWD)/../../src/.libs/"" AM_V_P="$(AM_V_P)" AM_V_at="$(AM_V_at)" $(AM_MAKEFLAGS) all; +@ENABLE_EXAMPLES_TRUE@ $(MAKE) -f dist-files/Makefile CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" AM_CPPFLAGS="$(AM_CPPFLAGS) -I"$${rel_src_subdir}/$(top_srcdir)/include/" -I"$${rel_src_subdir}/$(top_srcdir)/src/" -I"$${rel_build_subdir}$(top_builddir)/include/" -I"$${rel_build_subdir}$(top_builddir)/include/src/"" CFLAGS="$(CFLAGS)" AM_CFLAGS="$(AM_CFLAGS)" LDFLAGS="$(LDFLAGS)" AM_LDFLAGS="$(AM_LDFLAGS) -L../../../src/.libs/ -Wl,-rpath,"$(PWD)/../../src/.libs/"" AM_V_P="$(AM_V_P)" AM_V_at="$(AM_V_at)" $(AM_MAKEFLAGS) all; @ENABLE_EXAMPLES_TRUE@clean-local: @ENABLE_EXAMPLES_TRUE@ $(AM_V_at)$(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean; \