diff options
author | Cem Keylan <cem@ckyln.com> | 2021-07-17 23:41:42 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-07-17 23:41:42 +0300 |
commit | 45bad23159b1ee46c815b389da3db1859351f68d (patch) | |
tree | e524e500e68225f305df8859071b09b36c9bd35f | |
parent | da53d40bc348044b1ed06d0de20ac8b8db5a9364 (diff) | |
download | repository-45bad23159b1ee46c815b389da3db1859351f68d.tar.gz |
kcgi: link statically
-rwxr-xr-x | extra/kcgi/build | 6 |
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 |