diff options
author | Alexey Neyman <stilor@att.net> | 2016-04-14 07:30:34 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2016-08-23 18:00:27 (GMT) |
commit | d2af095eb26c7c90312ed07238c5a8254af3c2f8 (patch) | |
tree | db9a6de1d05df6f25fbc0fc787a959d7daac22aa /scripts/build/arch | |
parent | 49d1d8f5136d20db62c4a3a6b0ef401d596d8db2 (diff) |
musl: Add multilib support.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/arch')
-rw-r--r-- | scripts/build/arch/x86.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/build/arch/x86.sh b/scripts/build/arch/x86.sh index 9cd14a0..56272ed 100644 --- a/scripts/build/arch/x86.sh +++ b/scripts/build/arch/x86.sh @@ -167,3 +167,14 @@ CT_DoArchUClibcHeaderDir() { eval "${dir_var}="$( ${CT_TARGET}-gcc -print-multiarch ${cflags} ) fi } + +CT_DoArchMUSLHeaderDir() { + local dir_var="${1}" + local cflags="${2}" + + # If it is non-default multilib, add a suffix with architecture (reported by gcc) + # to the headers installation path. + if [ -n "${cflags}" ]; then + eval "${dir_var}="$( ${CT_TARGET}-gcc -print-multiarch ${cflags} ) + fi +} |