summaryrefslogtreecommitdiff
path: root/Ports/curl
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-08-13 21:21:38 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-13 21:29:48 +0200
commitc5b069eb9d105ec1616117b47b5f168fd9da39be (patch)
tree67943531ceacc5a09a4123ebf92a61330c5afcde /Ports/curl
parent79db56eb82050b53c24cec1b21077914d6ae429c (diff)
downloadserenity-c5b069eb9d105ec1616117b47b5f168fd9da39be.zip
Ports: Build a shared library for curl
This fixes building the git port.
Diffstat (limited to 'Ports/curl')
-rwxr-xr-xPorts/curl/package.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/Ports/curl/package.sh b/Ports/curl/package.sh
index 9b0b13c96b..a20dd87cc2 100755
--- a/Ports/curl/package.sh
+++ b/Ports/curl/package.sh
@@ -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
+}