forked from rosa/hakurei
internal/rosa/package: migrate musl
This removes some legacy cruft, causing 2 rebuilds per stage. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
13
internal/rosa/package/musl/ldso-rosa.patch
Normal file
13
internal/rosa/package/musl/ldso-rosa.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/ldso/dynlink.c b/ldso/dynlink.c
|
||||
index 715948f4..c2fece68 100644
|
||||
--- a/ldso/dynlink.c
|
||||
+++ b/ldso/dynlink.c
|
||||
@@ -1157,7 +1157,7 @@ static struct dso *load_library(const char *name, struct dso *needed_by)
|
||||
sys_path = "";
|
||||
}
|
||||
}
|
||||
- if (!sys_path) sys_path = "/lib:/usr/local/lib:/usr/lib";
|
||||
+ if (!sys_path) sys_path = "/system/lib:/system/lib/" LDSO_ARCH "-rosa-linux-musl:/lib:/usr/local/lib:/usr/lib";
|
||||
fd = path_open(name, sys_path, buf, sizeof buf);
|
||||
}
|
||||
pathname = buf;
|
||||
Reference in New Issue
Block a user