From dc48457bac57409bc6e620892fbddf9c51f2cb3e Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Sat, 6 Oct 2018 10:30:45 +0000 Subject: databases/sqlcached: Switch to sqlite3 and respect {C,LD}FLAGS PR: 231992 Submitted by: tobik Approved by: ivoras (maintainer, via mail) --- databases/sqlcached/files/patch-Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 databases/sqlcached/files/patch-Makefile (limited to 'databases/sqlcached/files/patch-Makefile') diff --git a/databases/sqlcached/files/patch-Makefile b/databases/sqlcached/files/patch-Makefile new file mode 100644 index 000000000000..95aadbd63f25 --- /dev/null +++ b/databases/sqlcached/files/patch-Makefile @@ -0,0 +1,21 @@ +--- Makefile.orig 2013-09-26 13:45:50 UTC ++++ Makefile +@@ -1,7 +1,5 @@ +-MYCFLAGS=-O3 -Wall -I/usr/local/include #-g -pg +-MYLDFLAGS=-L/usr/local/lib -lsqlite #-g -pg +-#MYCFLAGS=-O3 -Wall -I/usr/local/include -DSQLITE3 +-#MYLDFLAGS=-L/usr/local/lib -lsqlite3 ++MYCFLAGS= ${CFLAGS} -DSQLITE3 ++MYLDFLAGS= ${LDFLAGS} -lsqlite3 + + all: sqlcached sc_client sc_client_bench libsqlcached_client.so libsqlcached_client.a + +@@ -20,7 +18,7 @@ server_protocol.o: server_protocol.c common.h + cc -o server_protocol.o -c server_protocol.c ${MYCFLAGS} + + sc_client: client.o sqlcached_client.o +- cc -o sc_client client.o sqlcached_client.o ${MYLDFLAGS} -lreadline -lcurses ++ cc -o sc_client client.o sqlcached_client.o ${MYLDFLAGS} -lreadline -lncurses + + client.o: client.c common.h + cc -o client.o -c client.c ${MYCFLAGS} -- cgit v1.2.3