]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: ssl: do not needlessly build the OpenSSL docs
authorWilly Tarreau <w@1wt.eu>
Thu, 10 Jun 2021 05:52:23 +0000 (07:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jun 2021 13:16:57 +0000 (15:16 +0200)
1/4 of the OpenSSL build time is spent building the docs, let's just
build the software and not the doc, by replacing the "all" target
with "build_sw". With this my build time drops from 1'28 to 1'09.

Nothing was done for the other libs, as it's unknown whether they
provide specific build targets.

scripts/build-ssl.sh

index b36593e4e6c23548fdcbd8c3eea327a7e96d0a48..5342dfc48b8e094c3bad41cacdccea177e4cd15a 100755 (executable)
@@ -21,7 +21,7 @@ build_openssl_linux () {
     (
         cd "openssl-${OPENSSL_VERSION}/"
         ./config shared --prefix="${HOME}/opt" --openssldir="${HOME}/opt" -DPURIFY
-        make -j$(nproc) all
+        make -j$(nproc) build_sw
         make install_sw
     )
 }
@@ -31,7 +31,7 @@ build_openssl_osx () {
         cd "openssl-${OPENSSL_VERSION}/"
         ./Configure darwin64-x86_64-cc shared \
             --prefix="${HOME}/opt" --openssldir="${HOME}/opt" -DPURIFY
-        make depend all install_sw
+        make depend build_sw install_sw
     )
 }