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/python | |
| 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/python')
| -rw-r--r-- | internal/rosa/package/python/package.az | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/rosa/package/python/package.az b/internal/rosa/package/python/package.az index 40fabe25..4dc3d5ee 100644 --- a/internal/rosa/package/python/package.az +++ b/internal/rosa/package/python/package.az @@ -52,14 +52,14 @@ package python { }, // _ctypes appears to infer something from the linker name - "LDFLAGS=-Wl,--dynamic-linker=/system/lib/"+ + "LDFLAGS=-Wl,--dynamic-linker="+prefix+"/lib/"+ "ld-musl-"+llvmArch+".so.1", ]; exec = make { configure = { "enable-optimizations"; }; check = [ "test" ]; - postInstall = "ln -s python3 /work/system/bin/python"; + postInstall = "ln -s python3 /work"+prefix+"/bin/python"; }; tools = [ pkg-config ]; @@ -122,13 +122,13 @@ package python-early { }, // _ctypes appears to infer something from the linker name - "LDFLAGS=-Wl,--dynamic-linker=/system/lib/" + + "LDFLAGS=-Wl,--dynamic-linker="+prefix+"/lib/" + "ld-musl-"+llvmArch+".so.1", ]; exec = make { check = [ "test" ]; - postInstall = "ln -s python3 /work/system/bin/python"; + postInstall = "ln -s python3 /work"+prefix+"/bin/python"; }; inputs = [ @@ -586,7 +586,7 @@ package python-pycparser { // test case hard codes gcc early = ` -ln -s clang /system/bin/gcc +ln -s clang `+prefix+`/bin/gcc `; exec = pip {}; |
