Skip to content

Commit 92b2c49

Browse files
author
Homme Zwaagstra
committed
Speed up the MapServer compilation.
1 parent 048611e commit 92b2c49

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ git_tag=master
1111
trap 'exit' ERR
1212
set -E
1313

14+
# The APT dependencies for building MapServer.
1415
build_dependencies="git
1516
build-essential
1617
cmake"
@@ -92,8 +93,9 @@ cmake -DCMAKE_PREFIX_PATH=/usr/local \
9293
../
9394

9495
# Build and install Mapserver.
95-
make
96-
make install
96+
cpu_count=$( grep processor /proc/cpuinfo | wc -l )
97+
make -j${cpu_count}
98+
make -j${cpu_count} install
9799

98100
# Install the test mapfile.
99101
cd /tmp/build

0 commit comments

Comments
 (0)