Ports: Build a shared library for curl
This fixes building the git port.
This commit is contained in:
parent
79db56eb82
commit
c5b069eb9d
Notes:
sideshowbarker
2024-07-18 07:00:58 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/c5b069eb9d1 Pull-request: https://github.com/SerenityOS/serenity/pull/9388 Issue: https://github.com/SerenityOS/serenity/issues/9168
1 changed files with 8 additions and 2 deletions
|
@ -4,5 +4,11 @@ version=7.78.0
|
|||
useconfigure=true
|
||||
files="https://curl.se/download/curl-${version}.tar.bz2 curl-${version}.tar.bz2 98530b317dc95ccb324bbe4f834f07bb642fbc393b794ddf3434f246a71ea44a"
|
||||
auth_type=sha256
|
||||
depends="openssl zlib"
|
||||
configopts="--disable-ntlm-wb --with-openssl=${SERENITY_INSTALL_ROOT}/usr/local"
|
||||
depends="openssl zlib zstd"
|
||||
configopts="--disable-ntlm-wb --with-openssl=${SERENITY_INSTALL_ROOT}/usr/local --disable-symbol-hiding"
|
||||
|
||||
install() {
|
||||
run make DESTDIR=${SERENITY_INSTALL_ROOT} $installopts install
|
||||
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libcurl.so -Wl,-soname,libcurl.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libcurl.a -Wl,--no-whole-archive -lzstd
|
||||
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libcurl.la
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue