Skip to content

Commit 2536d07

Browse files
authored
Merge pull request #1 from houchen-li/main
decrease building threads to avoid Out-Of-Memory Issue
2 parents 93f61ff + 04a2aa6 commit 2536d07

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

build-riscv64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ sudo cp file.c alpine/file.c
2323
sudo cp build.sh alpine/build.sh
2424
sudo chmod +x alpine/build.sh
2525
sudo ./ruri/ruri ./alpine /bin/sh /build.sh
26-
cp alpine/$(uname -m).tar .
26+
cp alpine/$(uname -m).tar .

build-x86.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ sudo cp file.c x86/file.c
88
sudo cp build.sh x86/build.sh
99
sudo chmod +x x86/build.sh
1010
sudo ./ruri/ruri ./x86 /bin/sh /build.sh
11-
cp x86/*.tar ./i386.tar
11+
cp x86/*.tar ./i386.tar

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cd xz
1111
autoreconf -fi
1212
./autogen.sh
1313
./configure LDFLAGS="-static -Wl,--gc-sections -ffunction-sections -fdata-sections" --enable-static --disable-shared
14-
make -j8 LDFLAGS="--static -Wl,--gc-sections -ffunction-sections -fdata-sections"
14+
make -j4 LDFLAGS="--static -Wl,--gc-sections -ffunction-sections -fdata-sections"
1515
strip src/xz/xz
1616
upx src/xz/xz
1717
cp src/xz/xz ../output/

chroot-alpine.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ sudo ./ruri/ruri ./alpine /bin/sh /build.sh
2323
cp alpine/$(uname -m).tar .
2424
if [[ $(uname -m) == "amd64" ]]||[[ $(uname -m) == "x86_64" ]]; then
2525
bash build-x86.sh
26-
fi
26+
fi

0 commit comments

Comments
 (0)