$OpenBSD: patch-webui_Makefile,v 1.2 2015/07/31 20:49:54 naddy Exp $
--- webui/Makefile.orig	Sat May 26 02:38:57 2007
+++ webui/Makefile	Thu Jul 30 19:26:16 2015
@@ -6,14 +6,15 @@ SRCS=		sudoku-handler.c solver.c
 SUBDIR+=	templates
 
 VPATH+=		..
-CFLAGS+=	-pthread -Wall -fpic -static -I/usr/local/include \
+CFLAGS+=	-pthread -Wall -I/usr/local/include \
 		-I/usr/local/include/ClearSilver -I.. -DDEBUG \
 		-DNO_FCGI_DEFINES
 
 LDADD+=		-L/usr/local/lib -lneo_cgi -lneo_utl -lneo_cs -lpthread \
 		-lintl -liconv -lcrypto -lz -lc -lfcgi
+LDSTATIC=	${STATIC}
 
-BINDIR=		/usr/local/libexec
+BINDIR=		${TRUEPREFIX}/libexec
 NOMAN=	1
 
 .include <bsd.prog.mk>
