@@ -31,13 +31,15 @@ case "$TARGET_ARCH" in
31
31
export CC=" gcc"
32
32
STRIP=" strip"
33
33
HOST=" "
34
- TARGET=" " ;;
34
+ TARGET=" "
35
+ OSSL_TARGET=" linux-x86_64" ;;
35
36
" x86" )
36
37
DEPENDENCY_ARCH=" x86"
37
38
export CC=" i686-linux-gnu-gcc"
38
39
STRIP=" i686-gnu-strip"
39
40
HOST=" --host=i686-linux-gnu"
40
- TARGET=" --target=i686-linux-gnu" ;;
41
+ TARGET=" --target=i686-linux-gnu"
42
+ OSSL_TARGET=" linux-generic32" ;;
41
43
" arm64" )
42
44
# __GLIBC_MINOR__ is used as a feature test macro. Replace it with the
43
45
# earliest supported version of glibc 2.17 as was previously the case when building on ubuntu-18.04
@@ -48,13 +50,15 @@ case "$TARGET_ARCH" in
48
50
export CC=" aarch64-linux-gnu-gcc"
49
51
STRIP=" aarch64-linux-gnu-strip"
50
52
HOST=" --host=aarch64-linux-gnu"
51
- TARGET=" --target=aarch64-linux-gnu" ;;
53
+ TARGET=" --target=aarch64-linux-gnu"
54
+ OSSL_TARGET=" linux-aarch64" ;;
52
55
" arm" )
53
56
DEPENDENCY_ARCH=" arm"
54
57
export CC=" arm-linux-gnueabihf-gcc"
55
58
STRIP=" arm-linux-gnueabihf-strip"
56
59
HOST=" --host=arm-linux-gnueabihf"
57
- TARGET=" --target=arm-linux-gnueabihf" ;;
60
+ TARGET=" --target=arm-linux-gnueabihf"
61
+ OSSL_TARGET=" linux-armv4" ;;
58
62
* )
59
63
exit 1 ;;
60
64
esac
@@ -70,18 +74,62 @@ source "$CURRENT_DIR/compute-checksum.sh"
70
74
# shellcheck source=script/check-static-linking.sh
71
75
source " $CURRENT_DIR /check-static-linking.sh"
72
76
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
+ )
73
113
echo " -- Building vanilla curl at $CURL_INSTALL_DIR instead of distro-specific version"
74
114
75
- CURL_FILE_NAME=" curl-7.61.1 "
115
+ CURL_FILE_NAME=" curl-7.29.0 "
76
116
CURL_FILE=" $CURL_FILE_NAME .tar.gz"
77
117
78
118
cd /tmp || exit 1
79
- curl -LO " https://curl.haxx.se/download/$CURL_FILE "
119
+ curl -LO " https://curl.haxx.se/download/archeology/ $CURL_FILE "
80
120
tar -xf $CURL_FILE
81
121
82
122
(
83
123
cd $CURL_FILE_NAME || exit 1
84
- ./configure --prefix=" $CURL_INSTALL_DIR " " $HOST " " $TARGET "
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 "
85
133
make install
86
134
)
87
135
echo " -- Building git at $SOURCE to $DESTINATION "
0 commit comments