ruby: fix socket extension compile
authorJesse Gilles <jgilles@multitech.com>
Wed, 29 Sep 2010 06:13:44 +0000 (06:13 +0000)
committerKhem Raj <raj.khem@gmail.com>
Thu, 14 Oct 2010 04:30:27 +0000 (21:30 -0700)
* fixes building socket extension with ipv6 enabled

Signed-off-by: Jesse Gilles <jgilles@multitech.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/ruby/ruby.inc

index 6ef6535..cd8d2df 100644 (file)
@@ -6,7 +6,7 @@ LICENSE = "GPL"
 DEPENDS = "ruby-native zlib openssl"
 DEPENDS_virtclass-native = ""
 
-INC_PR = "r1"
+INC_PR = "r2"
 
 SHRT_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
 SRC_URI = "ftp://ftp.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \
@@ -18,6 +18,9 @@ S = "${WORKDIR}/ruby-${PV}"
 
 inherit autotools
 
+# fix building of socket extension
+EXTRA_OECONF = "--enable-wide-getaddrinfo"
+
 # This snippet lets compiled extensions which rely on external libraries,
 # such as zlib, compile properly.  If we don't do this, then when extmk.rb
 # runs, it uses the native libraries instead of the target libraries, and so