Patchwork [3/7] multilib_header: Do not install mutlilib headers for musl

login
register
mail settings
Submitter Khem Raj
Date May 29, 2014, 7:01 a.m.
Message ID <9150294f6056c7a0f2a9ad8aa950a3eca06de52d.1401346650.git.raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/72951/
State New
Headers show

Comments

Khem Raj - May 29, 2014, 7:01 a.m.
musl is not multilib and this creates trouble. eg. when
util-linux probes for ncurses it does not find it because
ncurses has installed the multilibbed header and this
header includes bits/wordsize.h and this header does not
exist on musl systems. If and when musl adds multilib
support we will revisit it.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/classes/multilib_header.bbclass | 7 +++++++
 1 file changed, 7 insertions(+)

Patch

diff --git a/meta/classes/multilib_header.bbclass b/meta/classes/multilib_header.bbclass
index 4d049a8..5ee0a2d 100644
--- a/meta/classes/multilib_header.bbclass
+++ b/meta/classes/multilib_header.bbclass
@@ -6,6 +6,13 @@  inherit siteinfo
 # all of the ABI variants for that given architecture.
 #
 oe_multilib_header() {
+
+	case ${HOST_OS} in
+	*-musl*)
+		return
+		;;
+	*)
+	esac
         # We use
         # For ARM: We don't support multilib builds.
         # For MIPS: "n32" is a special case, which needs to be