fix static build, curl will be staict binary; extra args can be transfer (#11852)
* update curl LDFLAGS to build static file * transfer extra args to build.sh
boxjan committed
Dec 7, 2021 at 22:59 UTC
4a432d99fc7167de6deec8c56aef2c116cd008f8
2 files changed
+2
-2
packaging/makeself/build-x86_64-static.sh
+1
-1
@@ -4,4 +4,4 @@
4
5
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
6
7
-"${SCRIPT_DIR}/build-static.sh" x86_64
7
+"${SCRIPT_DIR}/build-static.sh" x86_64 "${@}"
packaging/makeself/jobs/50-curl-7.78.0.install.sh
+1
-1
@@ -40,7 +40,7 @@ run ./configure \
40
--with-openssl
41
42
# Curl autoconf does not honour the curl_LDFLAGS environment variable
43
-run sed -i -e "s/curl_LDFLAGS =/curl_LDFLAGS = -all-static/" src/Makefile
43
+run sed -i -e "s/LDFLAGS =/LDFLAGS = -all-static/" src/Makefile
44
45
run make clean
46
run make -j "$(nproc)"