Remove a spurious -fpic which broke the build on sparc64, and build

the webui component statically as it seems to have been intended.
ok tobiasu@
This commit is contained in:
naddy 2015-07-31 20:49:54 +00:00
parent e0876b7e61
commit 5ccaa62489
2 changed files with 15 additions and 6 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.19 2015/07/30 16:05:51 sthen Exp $
# $OpenBSD: Makefile,v 1.20 2015/07/31 20:49:54 naddy Exp $
COMMENT= sudoku puzzle solver with cli, gui, and web ui
DISTNAME= sudoku-solver-1.0.1
REVISION= 7
REVISION= 8
CATEGORIES= games www x11

View File

@ -1,9 +1,18 @@
$OpenBSD: patch-webui_Makefile,v 1.1 2011/06/23 22:50:27 naddy Exp $
--- webui/Makefile.orig Tue Jun 21 07:13:47 2011
+++ webui/Makefile Tue Jun 21 07:14:07 2011
@@ -13,7 +13,7 @@ CFLAGS+= -pthread -Wall -fpic -static -I/usr/local/inc
$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