@@ -31,15 +31,13 @@ case "$TARGET_ARCH" in
3131 export CC=" gcc"
3232 STRIP=" strip"
3333 HOST=" "
34- TARGET=" "
35- OSSL_TARGET=" linux-x86_64" ;;
34+ TARGET=" " ;;
3635 " x86" )
3736 DEPENDENCY_ARCH=" x86"
3837 export CC=" i686-linux-gnu-gcc"
3938 STRIP=" i686-gnu-strip"
4039 HOST=" --host=i686-linux-gnu"
41- TARGET=" --target=i686-linux-gnu"
42- OSSL_TARGET=" linux-generic32" ;;
40+ TARGET=" --target=i686-linux-gnu" ;;
4341 " arm64" )
4442 # __GLIBC_MINOR__ is used as a feature test macro. Replace it with the
4543 # earliest supported version of glibc 2.17 as was previously the case when building on ubuntu-18.04
@@ -50,15 +48,13 @@ case "$TARGET_ARCH" in
5048 export CC=" aarch64-linux-gnu-gcc"
5149 STRIP=" aarch64-linux-gnu-strip"
5250 HOST=" --host=aarch64-linux-gnu"
53- TARGET=" --target=aarch64-linux-gnu"
54- OSSL_TARGET=" linux-aarch64" ;;
51+ TARGET=" --target=aarch64-linux-gnu" ;;
5552 " arm" )
5653 DEPENDENCY_ARCH=" arm"
5754 export CC=" arm-linux-gnueabihf-gcc"
5855 STRIP=" arm-linux-gnueabihf-strip"
5956 HOST=" --host=arm-linux-gnueabihf"
60- TARGET=" --target=arm-linux-gnueabihf"
61- OSSL_TARGET=" linux-armv4" ;;
57+ TARGET=" --target=arm-linux-gnueabihf" ;;
6258 * )
6359 exit 1 ;;
6460esac
@@ -74,62 +70,18 @@ source "$CURRENT_DIR/compute-checksum.sh"
7470# shellcheck source=script/check-static-linking.sh
7571source " $CURRENT_DIR /check-static-linking.sh"
7672
77- echo " -- Building vanilla OpenSSL at $OSSL_INSTALL_DIR instead of distro-specific version"
78-
79- OSSL_FILE_NAME=" openssl-1.0.2u"
80- OSSL_FILE=" $OSSL_FILE_NAME .tar.gz"
81-
82- cd /tmp || exit 1
83- curl -LO " https://www.openssl.org/source/$OSSL_FILE "
84- tar -xf $OSSL_FILE
85-
86- (
87- cd $OSSL_FILE_NAME || exit 1
88-
89- # this will conflict with a variable in the makefile
90- unset TARGET_ARCH
91-
92- # flags:
93- # - no-ssl2: deprecated
94- # - no-ssl3: deprecated
95- # - no-comp: not used by libcurl
96- # - no-dso: libcurl won't respect libssl saying it needs -ldl
97- # - no-engine: disabled because
98- ./Configure \
99- " $OSSL_TARGET " \
100- shared \
101- no-ssl2 \
102- no-ssl3 \
103- no-comp \
104- no-dso \
105- no-engine \
106- --prefix=" $OSSL_INSTALL_DIR " \
107- --openssldir=" $OSSL_INSTALL_DIR "
108-
109- make depend
110- make build_libs
111- make install
112- )
11373echo " -- Building vanilla curl at $CURL_INSTALL_DIR instead of distro-specific version"
11474
115- CURL_FILE_NAME=" curl-7.29 .0"
75+ CURL_FILE_NAME=" curl-7.58 .0"
11676CURL_FILE=" $CURL_FILE_NAME .tar.gz"
11777
11878cd /tmp || exit 1
119- curl -LO " https://curl.haxx.se/download/archeology/ $CURL_FILE "
79+ curl -LO " https://curl.haxx.se/download/$CURL_FILE "
12080tar -xf $CURL_FILE
12181
12282(
12383cd $CURL_FILE_NAME || exit 1
124-
125- export LDFLAGS=" -Wl,-R$OSSL_INSTALL_DIR /lib"
126-
127- ./configure \
128- --enable-threaded-resolver \
129- --enable-tls-srp \
130- --prefix=" $CURL_INSTALL_DIR " \
131- --with-ssl=" $OSSL_INSTALL_DIR " \
132- " $HOST " " $TARGET "
84+ ./configure --prefix=" $CURL_INSTALL_DIR " " $HOST " " $TARGET "
13385make install
13486)
13587echo " -- Building git at $SOURCE to $DESTINATION "
0 commit comments