blob: 0d0565fb3395e6d67b09b1451b605af3ce89b433 (
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
sed -i '/^\.for/,/^\.endfor/d' Makefile
# Modify Makefile to properly use LDFLAGS
# We don't want this expression to expand
# shellcheck disable=2016
sed -i '/^kfcgi:/{n; s,$, $(LDFLAGS),}' Makefile
./configure \
PREFIX=/usr \
SBINDIR=/usr/bin \
MANDIR=/usr/share/man \
LDFLAGS="$LDFLAGS -static"
make
make DESTDIR="$1" install
|