Commit 43d8c06e246c7e73277ba8935ca9e9b10735e9ad

Stefan Sperling 2020-01-28T10:11:27

link just gotweb with kcgi, not the libexec helpers

diff --git a/Makefile.inc b/Makefile.inc
index 13f04a9..c51458d 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -29,7 +29,8 @@ DEBUG = -O0 -g
 .endif
 
 .if "${MAKEWEB}" == "Yes"
-LDADD =		-L${PREFIX}/lib -static -lkcgihtml -lkcgi -lz -lutil
+LDADD +=	-L${PREFIX}/lib -lz -lutil
+LDSTATIC =	${STATIC}
 PREFIX =	/usr/local
 CHROOT_DIR =	/var/www
 GOTWEB_DIR =	/cgi-bin/gotweb
diff --git a/gotweb/Makefile b/gotweb/Makefile
index 4f2ae4e..a738cb3 100644
--- a/gotweb/Makefile
+++ b/gotweb/Makefile
@@ -16,7 +16,8 @@ MAN =		${PROG}.conf.5
 CPPFLAGS +=	-I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR} \
 		-I${PREFIX}/include
 
-LDADD +=	-L${PREFIX}/lib -static -lkcgihtml -lkcgi -lz -lutil
+LDADD =		-L${PREFIX}/lib -lkcgihtml -lkcgi -lz -lutil
+LDSTATIC =	${STATIC}
 
 .if ${GOT_RELEASE} != "Yes"
 NOMAN = Yes