fix compilation when functions are not inlined
authorHans de Graaff <graaff@gentoo.org>
Mon, 2 Apr 2018 06:55:36 +0000 (08:55 +0200)
committerHans de Graaff <graaff@gentoo.org>
Mon, 2 Apr 2018 06:55:36 +0000 (08:55 +0200)
Closes: https://bugs.gentoo.org/629164
Package-Manager: Portage-2.3.24, Repoman-2.3.6

dev-ruby/bcrypt_pbkdf/bcrypt_pbkdf-1.0.0.ebuild

index 692e9373f3d69dfaddec81eb8082138d3d414c86..0370d80022467f1b084ccdc524290d8af38e7afb 100644 (file)
@@ -30,6 +30,9 @@ all_ruby_prepare() {
 
 each_ruby_configure() {
        ${RUBY} -Cext/mri extconf.rb || die
+
+       # Some methods may not be inlined on x86 but they are not defined either, bug 629164
+       sed -i -e 's:-Wl,--no-undefined::' ext/mri/Makefile || die
 }
 
 each_ruby_compile() {