aboutsummaryrefslogtreecommitdiff
path: root/extra/links/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/links/build')
-rwxr-xr-xextra/links/build16
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/links/build b/extra/links/build
new file mode 100755
index 00000000..6e2291c8
--- /dev/null
+++ b/extra/links/build
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+export LDFLAGS="$LDFLAGS -static"
+
+./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
+make DESTDIR="$1" install