Skip to content

Commit 80a49b3

Browse files
bors[bot]taiki-e
andauthored
Merge #1166
1166: freebsd: include memstat in build image r=Emilgardis a=taiki-e libc 0.2.138 added memstat_* functions, but the build with cross fails because the build image does not contain the corresponding library. See rust-lang/libc#3025 for more context. See also rust-lang/rust#105222 which is the same fix to rust-lang/rust's build image. Co-authored-by: Taiki Endo <[email protected]>
2 parents 36d9ce1 + 87955f5 commit 80a49b3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changes/1166.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"description": "freebsd: include memstat in build image to fix build with libc 0.2.138 and up.",
3+
"type": "fixed"
4+
}

docker/freebsd.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ main() {
186186
cp -r "${td}/freebsd/lib/"* "${destdir}/lib"
187187
cp "${td}/freebsd/usr/lib/libc++.so.1" "${destdir}/lib"
188188
cp "${td}/freebsd/usr/lib/libc++.a" "${destdir}/lib"
189-
cp "${td}/freebsd/usr/lib"/lib{c,util,m,ssp_nonshared}.a "${destdir}/lib"
189+
cp "${td}/freebsd/usr/lib"/lib{c,util,m,ssp_nonshared,memstat}.a "${destdir}/lib"
190190
cp "${td}/freebsd/usr/lib"/lib{rt,execinfo,procstat}.so.1 "${destdir}/lib"
191+
cp "${td}/freebsd/usr/lib"/libmemstat.so.3 "${destdir}/lib"
191192
cp "${td}/freebsd/usr/lib"/{crt1,Scrt1,crti,crtn}.o "${destdir}/lib"
192193
cp "${td}/freebsd/usr/lib"/libkvm.a "${destdir}/lib"
193194

0 commit comments

Comments
 (0)