View | Details | Raw Unified | Return to bug 214551 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/cbsd/files/patch-Makefile (+13 lines)
Line 0 Link Here
1
--- Makefile.orig	2017-12-12 17:55:44 UTC
2
+++ Makefile
3
@@ -45,9 +45,7 @@ cbsd:
4
 	${CC} bin/cbsdssh6.c -o bin/cbsdssh6 -lssh2 -L/usr/local/lib -I/usr/local/include && ${STRIP} bin/cbsdssh6
5
 	${CC} bin/cfetch.c -o bin/cfetch -lfetch -L/usr/local/lib -I/usr/local/include && ${STRIP} bin/cfetch
6
 	${CC} sbin/netmask.c -o sbin/netmask && ${STRIP} sbin/netmask
7
-	${CC} misc/src/sqlcli.c -static -pthread -lsqlite3 -lm -L/usr/local/lib -I/usr/local/include -o misc/sqlcli && ${STRIP} misc/sqlcli
8
-	# ICU?
9
-	#${CC} misc/src/sqlcli.c -static -pthread -lsqlite3 -lpthread -licui18n -licuuc -licudata -lm -L/usr/local/lib -I/usr/local/include -o misc/sqlcli && ${STRIP} misc/sqlcli
10
+	${CC} misc/src/sqlcli.c -static `pkg-config sqlite3 --cflags --libs --static` -lm -lc++ -o misc/sqlcli && ${STRIP} misc/sqlcli
11
 	${CC} misc/src/cbsdlogtail.c -o misc/cbsdlogtail && ${STRIP} misc/cbsdlogtail
12
 	${CC} misc/src/pwcrypt.c -lcrypt -o misc/pwcrypt && ${STRIP} misc/pwcrypt
13
 	${CC} misc/src/chk_arp_byip.c -o misc/chk_arp_byip && ${STRIP} misc/chk_arp_byip
(-)sysutils/cbsd/files/patch-bin_cbsdsh_Makefile (+11 lines)
Line 0 Link Here
1
--- bin/cbsdsh/Makefile.orig	2018-01-13 11:07:12 UTC
2
+++ bin/cbsdsh/Makefile
3
@@ -20,7 +20,7 @@ WITHOUT_MAN=	yes
4
 NOMAN=		yes
5
 
6
 DPADD= ${LIBEDIT} ${LIBTERMCAP}
7
-LDADD= -ledit -ltermcap -lsqlite3 -lm -pthread -ljail
8
+LDADD= -ledit -ltermcap -lm -pthread -ljail `pkg-config sqlite3 --libs --static` -lm -lc++
9
 
10
 #CFLAGS+=-DSHELL -I. -I${.CURDIR} -DCBSD -I/usr/local/include -L/usr/lib -L/usr/local/lib
11
 CFLAGS+=-DSHELL -static -I. -I${.CURDIR} -DCBSD -I/usr/local/include -L/usr/local/lib

Return to bug 214551