File tree Expand file tree Collapse file tree
Build/libHttpClient.Linux Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ set -e
4+
35SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
46CONFIGURATION=" Release"
57
3133 echo " No previously-built library present at $SCRIPT_DIR /../../Out/x64/$CONFIGURATION /libcurl.Linux/libcurl.a - performing build"
3234fi
3335
36+ # FIXME: OPENSSL_INSTALL_DIR="$SCRIPT_DIR/../../Int/x64/$CONFIGURATION/openssl.Linux/"
37+ OPENSSL_INSTALL_DIR=/usr/local/ssl
38+
39+ CONFIGURE_ARGS=(
40+ --disable-shared
41+ --with-zlib
42+ --disable-dependency-tracking
43+ --with-openssl=$OPENSSL_INSTALL_DIR
44+ --enable-symbol-hiding
45+ --without-brotli
46+ )
3447if [ " $CONFIGURATION " = " Debug" ]; then
35- # make libcrypto and libssl
36- ./configure --disable-shared --with-zlib --disable-dependency-tracking -with-openssl=/usr/local/ssl --enable-symbol-hiding --enable-debug --without-brotli
48+ CONFIGURE_ARGS+=(--enable-debug)
3749else
38- # make libcrypto and libssl
39- ./configure --disable-shared --with-zlib --disable-dependency-tracking -with-openssl=/usr/local/ssl --enable-symbol-hiding --disable-debug --without-brotli
50+ CONFIGURE_ARGS+=(--disable-debug)
4051fi
4152
53+ # make libcrypto and libssl
54+ ./configure " ${CONFIGURE_ARGS[@]} "
55+
4256MAKE_PARALLELISM=" -j$( nproc) " # run Make in parallel to speed up the build process
4357make $MAKE_PARALLELISM
4458
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ set -e
4+
35SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
46
7+ POSITIONAL_ARGS=()
58DO_INSTALL=true
69while [[ $# -gt 0 ]]; do
710 case $1 in
@@ -20,6 +23,8 @@ while [[ $# -gt 0 ]]; do
2023 esac
2124done
2225
26+ set -- " ${POSITIONAL_ARGS[@]} " # restore positional parameters
27+
2328build_dependencies=(clang make autoconf automake libtool)
2429library_dependencies=(zlib1g zlib1g-dev)
2530
@@ -49,4 +54,4 @@ echo "Library dependencies: ${library_dependencies[*]}"
4954
5055sudo hwclock --hctosys
5156sudo apt-get update
52- sudo apt-get install " ${build_dependencies[@]} " " ${library_dependencies[@]} "
57+ sudo apt-get -y install " ${build_dependencies[@]} " " ${library_dependencies[@]} "
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ set -e
4+
35log () {
46 echo " ***** $1 *****"
57}
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ set -e
4+
35SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
46OPENSSL_SRC=" $SCRIPT_DIR /../../External/openssl"
57CONFIGURATION=" Release"
You can’t perform that action at this time.
0 commit comments