Skip to content

Commit adefb15

Browse files
committed
Use nproc for builds
1 parent 63dc24f commit adefb15

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

androidbuildlib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ do
175175
make $VERBOSE_FLAGS clean || exit
176176
fi
177177

178-
make -j4 $VERBOSE_FLAGS || exit
178+
make -j$(nproc) $VERBOSE_FLAGS || exit
179179
make install || exit
180180
echo "Done building $target"
181181
done

build_openssl.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,25 @@ LDFLAGS="-latomic"
2929
echo -e "\n++ Build openssl armeabi-v7a ++"
3030
./Configure no-shared android-arm -D__ANDROID_API__=21 --prefix="$INSTALL_DIR/armeabi-v7a" $LDFLAGS
3131
make $VERBOSE_FLAGS clean
32-
make -j4 $VERBOSE_FLAGS
32+
make "-j$(nproc)" $VERBOSE_FLAGS
3333
make install_sw
3434

3535
echo -e "\n++ Build openssl arm64-v8a ++"
3636
./Configure no-shared android-arm64 -D__ANDROID_API__=21 --prefix="$INSTALL_DIR/arm64-v8a" $LDFLAGS
3737
make $VERBOSE_FLAGS clean
38-
make -j4 $VERBOSE_FLAGS
38+
make "-j$(nproc)" $VERBOSE_FLAGS
3939
make install_sw
4040

4141
echo -e "\n++ Build openssl x86 ++"
4242
./Configure no-shared android-x86 -D__ANDROID_API__=21 --prefix="$INSTALL_DIR/x86" $LDFLAGS
4343
make $VERBOSE_FLAGS clean
44-
make -j4 $VERBOSE_FLAGS
44+
make "-j$(nproc)" $VERBOSE_FLAGS
4545
make install_sw
4646

4747
echo -e "\n++ Build openssl x86_64 ++"
4848
./Configure no-shared android-x86_64 -D__ANDROID_API__=21 --prefix="$INSTALL_DIR/x86_64" $LDFLAGS
4949
make $VERBOSE_FLAGS clean
50-
make -j4 $VERBOSE_FLAGS
50+
make "-j$(nproc)" $VERBOSE_FLAGS
5151
make install_sw
5252

5353
popd

0 commit comments

Comments
 (0)