dev-ruby/sigar: fix building with gcc 5.x, bug 570970

Package-Manager: portage-2.3.0
This commit is contained in:
Hans de Graaff
2016-12-11 18:31:20 +01:00
parent 8b2897334b
commit 5111c9d868

View File

@@ -19,6 +19,10 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
all_ruby_prepare() {
sed -i -e '25i$CFLAGS += " -std=gnu89"' bindings/ruby/extconf.rb || die
}
each_ruby_configure() {
${RUBY} -Cbindings/ruby extconf.rb || die
}