aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-07-17 23:41:42 +0300
committerCem Keylan <cem@ckyln.com>2021-07-17 23:41:42 +0300
commit45bad23159b1ee46c815b389da3db1859351f68d (patch)
treee524e500e68225f305df8859071b09b36c9bd35f
parentda53d40bc348044b1ed06d0de20ac8b8db5a9364 (diff)
downloadrepository-45bad23159b1ee46c815b389da3db1859351f68d.tar.gz
kcgi: link statically
-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