@cryptotaxi247 / netdata-1 / commits / 625fc25ef

statically linked curl added

Costa Tsaousis (ktsaou) committed Apr 2, 2017 at 20:16 UTC 625fc25efbfb17720c1f9981a55fced9d23c15d8
1 file changed +3 -20
makeself/jobs/50-curl-7.53.1.install.sh
+3 -20
@@ -1,15 +1,11 @@
1 #!/usr/bin/env bash
2
3 -exit 0
4 -
3 . $(dirname "${0}")/../functions.sh "${@}" || exit 1
4
5 fetch "curl-curl-7_53_1" "https://github.com/curl/curl/archive/curl-7_53_1.tar.gz"
6
9 -export CFLAGS="-static -DCURL_STATICLIB"
7 export LDFLAGS="-static"
8 export PKG_CONFIG="pkg-config --static"
12 -export curl_LDFLAGS="-all-static"
9
10 run ./buildconf
11
@@ -22,24 +18,11 @@ run ./configure \
18 --enable-proxy \
19 --enable-ipv6 \
20 --enable-cookies \
25 - --disable-ldap \
26 - --disable-sspi \
27 - --without-librtmp \
28 - --disable-ftp \
29 - --disable-file \
30 - --disable-dict \
31 - --disable-telnet \
32 - --disable-tftp \
33 - --disable-rtsp \
34 - --disable-pop3 \
35 - --disable-imap \
36 - --disable-smtp \
37 - --disable-gopher \
38 - --disable-smb \
39 - --disable-ares \
40 - --without-libidn \
21 ${NULL}
22
23 +# Curl autoconf does not honour the curl_LDFLAGS environment variable
24 +run sed -i -e "s/curl_LDFLAGS =/curl_LDFLAGS = -all-static/" src/Makefile
25 +
26 run make clean
27 run make -j${PROCESSORS}
28 run make install