diff options
author | TheFightingCatfish <seekingblues@gmail.com> | 2021-08-13 18:34:32 +0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-13 15:43:36 +0200 |
commit | 09213901098fa2571e52ef5534e45a588aefe4b5 (patch) | |
tree | 98348a73390a7e191cc2f0201611c30df8474d86 /Ports | |
parent | ff8630c66fc7e44a91f2985058bc761f8b6f5ca1 (diff) | |
download | serenity-09213901098fa2571e52ef5534e45a588aefe4b5.zip |
Ports: Support libcurl in the git build
Previously, libcurl is not used in the git build because the test
program in configure fails to link against it properly. We bypass the
test and make sure we link against all necessary libraries (libssl,
libcrypto and zlib).
Diffstat (limited to 'Ports')
-rwxr-xr-x | Ports/git/package.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Ports/git/package.sh b/Ports/git/package.sh index 3cd6805f0f..bb937489c5 100755 --- a/Ports/git/package.sh +++ b/Ports/git/package.sh @@ -4,11 +4,11 @@ version=2.31.1 useconfigure="true" files="https://mirrors.edge.kernel.org/pub/software/scm/git/git-${version}.tar.xz git-${version}.tar.xz 9f61417a44d5b954a5012b6f34e526a3336dcf5dd720e2bb7ada92ad8b3d6680" auth_type=sha256 -configopts="--target=${SERENITY_ARCH}-pc-serenity CFLAGS=-DNO_IPV6" +configopts="--target=${SERENITY_ARCH}-pc-serenity --with-lib=${SERENITY_INSTALL_ROOT}/usr/local CFLAGS=-DNO_IPV6 LDFLAGS=-L${SERENITY_INSTALL_ROOT}/usr/local/lib" depends="zlib curl" build() { - run make $makeopts + run make $makeopts CURL_LDFLAGS="-lcurl -lssl -lcrypto -lz" run make strip } @@ -17,7 +17,11 @@ post_install() { run cp "../default_gitconfig" "${SERENITY_INSTALL_ROOT}/home/anon/.gitconfig" } -export NO_OPENSSL=1 +export NO_PERL=YesPlease +export NO_PYTHON=YesPlease +export NO_EXPAT=YesPlease +export NO_TCLTK=YesPlease export ac_cv_fread_reads_directories=no export ac_cv_snprintf_returns_bogus=no export ac_cv_iconv_omits_bom=no +export ac_cv_lib_curl_curl_global_init=yes |