Skip to content

Commit 8814ac7

Browse files
committed
add parallelization during build of libs
This is not changing drastically the compile time, because the long phase is the configure
1 parent 802e99f commit 8814ac7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

deps/build_libs.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export LIBUSB_DIR=`pwd`
1717
./configure --prefix=${PREFIX} --with-pic --disable-udev --enable-static --disable-shared --host=${CROSS_COMPILE}
1818
make distclean
1919
./configure --prefix=${PREFIX} --with-pic --disable-udev --enable-static --disable-shared --host=${CROSS_COMPILE}
20-
make
20+
make -j$(nproc)
2121
make install
2222

2323
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
@@ -41,7 +41,7 @@ else
4141
PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig" ./configure --prefix=${PREFIX} --enable-static --disable-shared --host=${CROSS_COMPILE}
4242
make distclean
4343
PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig" ./configure --prefix=${PREFIX} --enable-static --disable-shared --host=${CROSS_COMPILE}
44-
make
44+
make -j$(nproc)
4545
make install
4646
fi
4747

@@ -59,15 +59,15 @@ if [[ $CROSS_COMPILE == "x86_64-apple-darwin13" ]]; then
5959
fi
6060

6161
cmake -DCMAKE_C_COMPILER=$CROSS_COMPILER -DCMAKE_CXX_COMPILER=$CROSS_COMPILER_CXX -DCMAKE_INSTALL_PREFIX="$PREFIX" $CMAKE_EXTRA_FLAG -DLIBUSB_INCLUDE_DIR="$PREFIX/include/libusb-1.0" -DLIBFTDI_LIBRARY_DIRS="$PREFIX/lib" -DLIBUSB_LIBRARIES="usb-1.0" ../
62-
make
62+
make -j$(nproc)
6363
make install
6464

6565
cd /opt/lib/libelf-0.8.13
6666
export LIBELF_DIR=`pwd`
6767
./configure --disable-shared --host=$CROSS_COMPILE --prefix=${PREFIX}
6868
make distclean
6969
./configure --disable-shared --host=$CROSS_COMPILE --prefix=${PREFIX}
70-
make
70+
make -j$(nproc)
7171
make install
7272

7373
echo "*****************"
@@ -82,15 +82,15 @@ export NCURSES_DIR=`pwd`
8282
./configure $EXTRAFLAGS --disable-shared --without-debug --without-ada --with-termlib --enable-termcap --without-manpages --without-progs --without-tests --host=$CROSS_COMPILE --prefix=${PREFIX}
8383
make distclean
8484
./configure $EXTRAFLAGS --disable-shared --without-debug --without-ada --with-termlib --enable-termcap --without-manpages --without-progs --without-tests --host=$CROSS_COMPILE --prefix=${PREFIX}
85-
make
85+
make -j$(nproc)
8686
make install.libs
8787

8888
cd /opt/lib/readline-8.0
8989
export READLINE_DIR=`pwd`
9090
./configure --prefix=$PREFIX --disable-shared --host=$CROSS_COMPILE
9191
make distclean
9292
./configure --prefix=$PREFIX --disable-shared --host=$CROSS_COMPILE
93-
make
93+
make -j$(nproc)
9494
make install-static
9595

9696
if [[ $CROSS_COMPILE != "i686-w64-mingw32" && $CROSS_COMPILE != "x86_64-apple-darwin13" ]] ; then
@@ -100,7 +100,7 @@ cd /opt/lib/eudev-3.2.10
100100
make distclean
101101
./autogen.sh
102102
./configure --enable-static --disable-gudev --disable-introspection --disable-shared --disable-blkid --disable-kmod --disable-manpages --prefix=$PREFIX --host=${CROSS_COMPILE}
103-
make
103+
make -j$(nproc)
104104
make install
105105
fi
106106

@@ -111,5 +111,5 @@ export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
111111
make distclean
112112
./bootstrap
113113
./configure --prefix=$PREFIX --enable-static --disable-shared --host=$CROSS_COMPILE
114-
make
114+
make -j$(nproc)
115115
make install

0 commit comments

Comments
 (0)