[prev in list] [next in list] [prev in thread] [next in thread] 

List:       musl
Subject:    [musl] [PATCH] Enable multilib support when building with musl-gcc
From:       James Larrowe <larrowe.semaj11 () gmail ! com>
Date:       2019-01-30 21:38:15
Message-ID: 20190130213815.19267-1-larrowe.semaj11 () gmail ! com
[Download RAW message or body]

Somewhat incomplete; enables using 32-bit musl-gcc
on a 64-bit system

Signed-off-by: James Larrowe <larrowe.semaj11@gmail.com>
---
 tools/musl-gcc.specs.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/musl-gcc.specs.sh b/tools/musl-gcc.specs.sh
index 30492574..a73e6656 100644
--- a/tools/musl-gcc.specs.sh
+++ b/tools/musl-gcc.specs.sh
@@ -23,7 +23,9 @@ libgcc.a%s %:if-exists(libgcc_eh.a%s)
 crtendS.o%s $libdir/crtn.o
 
 *link:
--dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic}
+-dynamic-linker $ldso -nostdlib %{shared:-shared} %{static:-static} \
+ %{rdynamic:-export-dynamic} %{m64:-melf_x86_64} %{mx32:-melf32_x86_64} \
+ %{m32:-melf_i386}
 
 *esp_link:
 
-- 
2.20.1

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic