fix(steps-guix/git): add static-libcurl build path with configure check patch

This commit is contained in:
vxtls 2026-02-24 14:17:06 -05:00
parent 7ed755a106
commit ddbe55b76b
4 changed files with 73 additions and 0 deletions

View file

@ -0,0 +1,46 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
}
src_configure() {
local host_triplet curl_static_libs
host_triplet="$(gcc -dumpmachine)"
curl_static_libs="-lcurl -lssl -lcrypto -lz -pthread"
PATH="${PREFIX}/bin:/usr/bin:/bin" \
LIBS="${curl_static_libs}" \
./configure \
--prefix="${PREFIX}" \
--libdir="${LIBDIR}" \
--build="${host_triplet}" \
--host="${host_triplet}"
}
src_compile() {
local curl_static_libs
curl_static_libs="-lcurl -lssl -lcrypto -lz -pthread"
make "${MAKEJOBS}" \
NO_GETTEXT=YesPlease \
NO_TCLTK=YesPlease \
NO_PERL=YesPlease \
NO_PYTHON=YesPlease \
CURL_LDFLAGS="${curl_static_libs}"
}
src_install() {
local curl_static_libs
curl_static_libs="-lcurl -lssl -lcrypto -lz -pthread"
make install \
NO_GETTEXT=YesPlease \
NO_TCLTK=YesPlease \
NO_PERL=YesPlease \
NO_PYTHON=YesPlease \
CURL_LDFLAGS="${curl_static_libs}" \
DESTDIR="${DESTDIR}" \
prefix="${PREFIX}" \
libdir="${LIBDIR}"
}