blob: 87bdc95bfd861ed9a56baf0f25efc9b73db51a01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh -e
# Modify Makefile to make it POSIX
sed -i '/^\.for/,/^\.endfor/d' Makefile
# Modify Makefile to properly use LDFLAGS
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
|