commit: 7bf949f0b287b2b8a7c814705629a306d8acbcc7 Author: layman <layman <AT> localhost> AuthorDate: Fri May 1 18:49:27 2015 +0000 Commit: Brian Evans <grknight <AT> gentoo <DOT> org> CommitDate: Fri May 1 18:49:27 2015 +0000 URL: https://gitweb.gentoo.org/proj/mysql.git/commit/?id=7bf949f0
Fix multilib builds wrt libbfd eclass/mysql-multilib.eclass | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/eclass/mysql-multilib.eclass b/eclass/mysql-multilib.eclass index e6432f7..4b379f9 100644 --- a/eclass/mysql-multilib.eclass +++ b/eclass/mysql-multilib.eclass @@ -569,11 +569,18 @@ multilib_src_configure() { fi if in_iuse bindist ; then - mycmakeargs+=( - -DWITH_READLINE=$(usex bindist 1 0) - -DNOT_FOR_DISTRIBUTION=$(usex bindist 0 1) - $(usex bindist -DHAVE_BFD_H=0 '') - ) + # bfd.h is only used starting with 10.1 and can be controlled by NOT_FOR_DISTRIBUTION + if multilib_is_native_abi; then + mycmakeargs+=( + -DWITH_READLINE=$(usex bindist 1 0) + -DNOT_FOR_DISTRIBUTION=$(usex bindist 0 1) + ) + else + mycmakeargs+=( + -DWITH_READLINE=1 + -DNOT_FOR_DISTRIBUTION=0 + ) + fi fi ### TODO: make this system but issues with UTF-8 prevent it