blob: 178fdc95d0faaa1d3e68b89e613dd6d40f9bc033 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh -e
# Modify Makefile to make it POSIX
clsed '/^\.for/,/^\.endfor/d' Makefile
# Modify Makefile to properly use LDFLAGS
# We don't want this expression to expand
# shellcheck disable=2016
clsed '/^kfcgi:/{n; s,$, $(LDFLAGS),}' Makefile
./configure \
PREFIX=/usr \
SBINDIR=/usr/bin \
MANDIR=/usr/share/man \
LDFLAGS="$LDFLAGS -static"
make
make DESTDIR="$1" install
|