optionally (compile-time change for now) store message data as

b64-encoded TEXT instead of BYTEA, which on my laptop is getting
corrupted sometimes.
This commit is contained in:
Eric House 2013-01-21 19:40:20 -08:00
parent d374d0f3d8
commit 2744e8698c

View file

@ -41,12 +41,14 @@ HASH=$(shell git describe)
OBJ = $(patsubst %.cpp,%.o,$(SRC)) OBJ = $(patsubst %.cpp,%.o,$(SRC))
#LDFLAGS += -pthread -g -lmcheck $(STATIC) #LDFLAGS += -pthread -g -lmcheck $(STATIC)
LDFLAGS += -pthread -g $(STATIC) \ LDFLAGS += -pthread -g $(STATIC)
-L$(shell pg_config --libdir) LDFLAGS += -L$(shell pg_config --libdir)
LDFLAGS += $(shell pkg-config --libs glib-2.0)
CPPFLAGS += -DSPAWN_SELF -g -Wall \ CPPFLAGS += -DSPAWN_SELF -g -Wall
-I $(shell pg_config --includedir) \ CPPFLAGS += -I $(shell pg_config --includedir)
-DSVN_REV=\"$(shell cat $(GITINFO) 2>/dev/null || echo -n $(HASH) )\" CPPFLAGS += -DSVN_REV=\"$(shell cat $(GITINFO) 2>/dev/null || echo -n $(HASH) )\"
CPPFLAGS += $(shell pkg-config --cflags glib-2.0)
# CPPFLAGS += -DDO_HTTP # CPPFLAGS += -DDO_HTTP
# CPPFLAGS += -DHAVE_STIME # CPPFLAGS += -DHAVE_STIME
@ -58,7 +60,7 @@ memdebug all: xwrelay rq
# Manual config in order to place -lpq after the .obj files as # Manual config in order to place -lpq after the .obj files as
# required by something Ubuntu did upgrading natty to oneiric # required by something Ubuntu did upgrading natty to oneiric
xwrelay: $(OBJ) xwrelay: $(OBJ)
$(CXX) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ -lpq $(CXX) $(CPPFLAGS) -o $@ $^ -lpq $(LDFLAGS)
rq: rq.c rq: rq.c