aboutsummaryrefslogtreecommitdiff
path: root/extra/kcgi
diff options
context:
space:
mode:
Diffstat (limited to 'extra/kcgi')
-rwxr-xr-xextra/kcgi/build6
1 files changed, 5 insertions, 1 deletions
diff --git a/extra/kcgi/build b/extra/kcgi/build
index f6bc745b..87bdc95b 100755
--- a/extra/kcgi/build
+++ b/extra/kcgi/build
@@ -3,10 +3,14 @@
# 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
+ MANDIR=/usr/share/man \
+ LDFLAGS="$LDFLAGS -static"
make
make DESTDIR="$1" install