1
0

build: don't hardcode num worker threads "make -j4"

This commit is contained in:
SomberNight
2022-12-03 22:50:18 +00:00
parent 96af21faeb
commit 65ae281180
5 changed files with 6 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ tar xf "$CACHEDIR/Python-$PYTHON_VERSION.tar.xz" -C "$CACHEDIR"
--enable-ipv6 \
--enable-shared \
-q
make -j4 -s || fail "Could not build Python"
make "-j$CPU_COUNT" -s || fail "Could not build Python"
)
info "installing python."
(
@@ -111,7 +111,7 @@ XCB_UTIL_VERSION="acf790d7752f36e450d476ad79807d4012ec863b"
git checkout "${XCB_UTIL_VERSION}^{commit}"
./autogen.sh
./configure --enable-shared
make -j4 -s || fail "Could not build libxcb-util1"
make "-j$CPU_COUNT" -s || fail "Could not build libxcb-util1"
) || fail "Could build libxcb-util1"
cp "$CACHEDIR/libxcb-util1/util/src/.libs/libxcb-util.so.1" "$APPDIR/usr/lib/libxcb-util.so.1"

View File

@@ -129,6 +129,7 @@ if [ -n "$GCC_TRIPLET_BUILD" ] ; then
fi
export GCC_STRIP_BINARIES="${GCC_STRIP_BINARIES:-0}"
export CPU_COUNT="$(nproc 2> /dev/null || sysctl -n hw.ncpu)"
function break_legacy_easy_install() {

View File

@@ -59,7 +59,7 @@ info "Building $pkgname..."
--disable-static \
--enable-shared || fail "Could not configure $pkgname. Please make sure you have a C compiler installed and try again."
fi
make -j4 || fail "Could not build $pkgname"
make "-j$CPU_COUNT" || fail "Could not build $pkgname"
make install || fail "Could not install $pkgname"
. "$here/$pkgname/dist/lib/libsecp256k1.la"
host_strip "$here/$pkgname/dist/lib/$dlname"

View File

@@ -47,7 +47,7 @@ info "Building $pkgname..."
$AUTOCONF_FLAGS \
|| fail "Could not configure $pkgname. Please make sure you have a C compiler installed and try again."
fi
make -j4 || fail "Could not build $pkgname"
make "-j$CPU_COUNT" || fail "Could not build $pkgname"
make install || warn "Could not install $pkgname"
. "$here/$pkgname/libusb/.libs/libusb-1.0.la"
host_strip "$here/$pkgname/libusb/.libs/$dlname"

View File

@@ -81,7 +81,7 @@ info "Building $pkgname..."
--disable-static \
--enable-shared || fail "Could not configure $pkgname. Please make sure you have a C compiler installed and try again."
fi
make -j4 || fail "Could not build $pkgname"
make "-j$CPU_COUNT" || fail "Could not build $pkgname"
make install || fail "Could not install $pkgname"
. "$here/$pkgname/dist/lib/libzbar.la"
host_strip "$here/$pkgname/dist/lib/$dlname"