[Pkg-libvirt-commits] [libguestfs] 244/384: macosx: ruby: Use correct dllib extension instead of assuming '.so'.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:57:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit eaae0b614c59f799885ee940117c4fb507a1f2d3
Author: Margaret Lewicka <margaret at meaningless.name>
Date:   Fri Feb 6 09:53:45 2015 +0000

    macosx: ruby: Use correct dllib extension instead of assuming '.so'.
---
 ruby/Makefile.am | 6 ++++--
 ruby/Rakefile.in | 4 +++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ruby/Makefile.am b/ruby/Makefile.am
index f605188..d28d77b 100644
--- a/ruby/Makefile.am
+++ b/ruby/Makefile.am
@@ -21,6 +21,8 @@ generator_built = \
 	ext/guestfs/_guestfs.c \
 	bindtests.rb
 
+DLEXT := $(shell $(RUBY) -rrbconfig -e "puts RbConfig::CONFIG['DLEXT']")
+
 EXTRA_DIST = \
 	$(generator_built) \
 	Rakefile.in \
@@ -38,7 +40,7 @@ CLEANFILES = \
 	ext/guestfs/*~ \
 	ext/guestfs/extconf.h \
 	ext/guestfs/_guestfs.o \
-	ext/guestfs/_guestfs.so \
+	ext/guestfs/_guestfs.$(DLEXT) \
 	ext/guestfs/mkmf.log \
 	ext/guestfs/Makefile
 
@@ -59,7 +61,7 @@ install:
 	$(MKDIR_P) $(DESTDIR)$(RUBY_LIBDIR)
 	$(MKDIR_P) $(DESTDIR)$(RUBY_ARCHDIR)
 	$(INSTALL) -p -m 0644 $(srcdir)/lib/guestfs.rb $(DESTDIR)$(RUBY_LIBDIR)
-	$(INSTALL) -p -m 0755 ext/guestfs/_guestfs.so $(DESTDIR)$(RUBY_ARCHDIR)
+	$(INSTALL) -p -m 0755 ext/guestfs/_guestfs.$(DLEXT) $(DESTDIR)$(RUBY_ARCHDIR)
 
 TESTS = run-bindtests run-ruby-tests
 
diff --git a/ruby/Rakefile.in b/ruby/Rakefile.in
index 94a25fd..1dfc600 100644
--- a/ruby/Rakefile.in
+++ b/ruby/Rakefile.in
@@ -40,9 +40,11 @@ end
 PKG_NAME='@PACKAGE_NAME@'
 PKG_VERSION='@PACKAGE_VERSION@'
 
+DLEXT=RbConfig::CONFIG['DLEXT']
+
 EXT_CONF='@abs_builddir@/ext/guestfs/extconf.rb'
 MAKEFILE='@builddir@/ext/guestfs/Makefile'
-GUESTFS_MODULE='@builddir@/ext/guestfs/_guestfs.so'
+GUESTFS_MODULE="@builddir@/ext/guestfs/_guestfs.#{DLEXT}"
 GUESTFS_SRC='@srcdir@/ext/guestfs/_guestfs.c'
 
 CLEAN.include [ "@builddir@/ext/**/*.o", GUESTFS_MODULE,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list