Skip to content

Commit

Permalink
Ports: Build a shared library for curl
Browse files Browse the repository at this point in the history
This fixes building the git port.
  • Loading branch information
gunnarbeutner authored and awesomekling committed Aug 13, 2021
1 parent 79db56e commit c5b069e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Ports/curl/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit c5b069e

Please sign in to comment.