Index: ruby/Makefile.am =================================================================== --- ruby/Makefile.am.orig +++ ruby/Makefile.am @@ -53,6 +53,10 @@ TESTS_ENVIRONMENT = \ all: $(generator_built) rake build + sed -i 's|-Wl,-R\ -Wl,\$$(libdir)||' $(top_builddir)/ruby/ext/guestfs/Makefile + sed -i 's|-Wl,-R\$$(libdir)||' $(top_builddir)/ruby/ext/guestfs/Makefile + sed -i 's|-Wl,-R[^[:blank:]]*/src/.libs||' $(top_builddir)/ruby/ext/guestfs/Makefile + make -C $(top_builddir)/ruby/ext/guestfs clean all rake rdoc RUBY_SITELIB := $(shell ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")