diff options
Diffstat (limited to 'internal/rosa/package/musl/package.az')
| -rw-r--r-- | internal/rosa/package/musl/package.az | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/rosa/package/musl/package.az b/internal/rosa/package/musl/package.az index c264c782..7afa7e2f 100644 --- a/internal/rosa/package/musl/package.az +++ b/internal/rosa/package/musl/package.az @@ -24,6 +24,9 @@ package musl-headers { exec = make { defaults = false; + configure = { + "target": triple; + }; make = [ "DESTDIR=/work", "install-headers" ]; check = nil; install = "# headers installed during make"; @@ -46,9 +49,20 @@ package musl { env = [ "LDFLAGS=" + earlyLDFLAGS, ]; + early = ` +[ -e '/system/`+arch+`' ] && \ + ln -s ../../../../`+arch+`/system/lib/`+triple+` /system/lib/clang/*/lib || true +`; exec = make { defaults = false; + configure = { + "target": triple; + + "AR": "ar"; + "RANLIB": "ranlib"; + "CC": "'clang --target="+triple+" -rtlib=compiler-rt'"; + }; check = nil; postInstall = ` mkdir -p /work/system/bin @@ -61,5 +75,6 @@ rmdir -v /work/lib `; }; + cross = [ early-compiler-rt ]; tools = [ coreutils ]; } |
