diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-28 03:05:09 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-28 04:12:42 +0900 |
| commit | 53e9dd6aa933c1a5b43da83a88d5e07bf27285bf (patch) | |
| tree | 75d23f52901368c2e9764df631d37b8eb7484723 /internal/rosa/package/musl | |
| parent | 7e3ba55cdc4d4a7c19deb65879e8abbb12a8e458 (diff) | |
internal/rosa: do not hard code prefix
This allows the prefix to be changed, at runtime if needed.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/musl')
| -rw-r--r-- | internal/rosa/package/musl/package.az | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/rosa/package/musl/package.az b/internal/rosa/package/musl/package.az index fac7c781..d3192308 100644 --- a/internal/rosa/package/musl/package.az +++ b/internal/rosa/package/musl/package.az @@ -43,8 +43,8 @@ package musl { "LDFLAGS=" + earlyLDFLAGS, ]; early = ` -[ -e '/system/`+arch+`' ] && \ - ln -s ../../../../`+arch+`/system/lib/`+triple+` /system/lib/clang/*/lib || true +[ -e '`+prefix+`/`+arch+`' ] && \ + ln -s ../../../../`+arch+prefix+`/lib/`+triple+` `+prefix+`/lib/clang/*/lib || true `; exec = make { @@ -56,11 +56,11 @@ package musl { }; check = nil; postInstall = ` -mkdir -p /work/system/bin +mkdir -p /work`+prefix+`/bin COMPAT_LINKER_NAME="ld-musl-`+llvmArch+`.so.1" -ln -vs ../lib/libc.so /work/system/bin/linker -ln -vs ../lib/libc.so /work/system/bin/ldd -ln -vs libc.so "/work/system/lib/${COMPAT_LINKER_NAME}" +ln -vs ../lib/libc.so /work`+prefix+`/bin/linker +ln -vs ../lib/libc.so /work`+prefix+`/bin/ldd +ln -vs libc.so "/work`+prefix+`/lib/${COMPAT_LINKER_NAME}" rm -v "/work/lib/${COMPAT_LINKER_NAME}" rmdir -v /work/lib `; |
