aboutsummaryrefslogtreecommitdiff
path: root/extra/links/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/links/build')
-rwxr-xr-xextra/links/build14
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/links/build b/extra/links/build
new file mode 100755
index 00000000..94034772
--- /dev/null
+++ b/extra/links/build
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+
+./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --without-libevent \
+ --with-ssl
+
+# We don't need libbsd, there is no way to disable it from
+printf '#undef HAVE_LIBBSD\n' >> config.h
+clsed 's/-lbsd//' Makefile
+
+make LDFLAGS="$LDFLAGS -static"
+make DESTDIR="$1" install