SHA256
1
0
forked from pool/libguestfs
libguestfs/libguestfs-1.13.14-ruby.patch

16 lines
611 B
Diff
Raw Normal View History

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']")