2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-25 08:40:10 -07:00
repo/core/git/build
Owen Rafferty 366dfa3489
git: remove openssl dependency, -static is a linker flag
openssl is only used for git-imap-send, which can use libcurl instead
since curl 7.34.0.
2022-07-17 23:34:47 -05:00

30 lines
620 B
Bash
Executable File

#!/bin/sh -e
export LDFLAGS="$LDFLAGS -static"
cat > config.mak <<EOF
NO_GETTEXT=YesPlease
NO_SVN_TESTS=YesPlease
NO_TCLTK=YesPlease
NO_EXPAT=YesPlease
NO_NSEC=YesPlease
NO_PYTHON=YesPlease
NO_PERL=YesPlease
NO_SYS_POLL_H=1
NO_CROSS_DIRECTORY_HARDLINKS=1
NO_INSTALL_HARDLINKS=1
NO_OPENSSL=YesPlease
EOF
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
ac_cv_lib_curl_curl_global_init=yes \
ac_cv_snprintf_returns_bogus=no \
ac_cv_fread_reads_directories=yes
make LIBS="$(curl-config --static-libs) libgit.a reftable/libreftable.a xdiff/lib.a -lz"
make install
cp -Rf man "$1/usr/share/man"