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