Commit fb385b05 authored by Leigh Stoller's avatar Leigh Stoller

Statically link; solves both core dump problems for some reason.

parent 5d9afb7a
......@@ -9,13 +9,22 @@ all: event-sched
include $(TESTBED_SRCDIR)/GNUmakerules
CFLAGS += -O -g -Wall -pthread -DDEBUG
CFLAGS += -pthread
CFLAGS += -O -g -Wall -DDEBUG
CFLAGS += -I. -I${OBJDIR} -I$(SRCDIR)/../lib -I$(TESTBED_SRCDIR)/lib/libtb
CFLAGS += `elvin-config --cflags vin4mt`
LDFLAGS += -pthread -L../lib -L${OBJDIR}/lib/libtb
LIBS += -levent -ltb -lcipher -L/usr/local/lib/mysql -lmysqlclient
LIBS += `elvin-config --libs vin4mt`
LDFLAGS += -pthread -static
LDFLAGS += -L../lib -L${OBJDIR}/lib/libtb
LIBS += -levent -ltb -lcipher -L/usr/local/lib/mysql -lmysqlclient -lz
#
# XXX elvin-config adds -lc which is rather bogus, and messes up -pthread
# build on freebsd. I made a vain attempt to filter it out, but
# gave up quickly. Deal with it later.
#
#LIBS += `elvin-config --libs vin4mt`
LIBS += -L/usr/local/lib -lvin4mt -lvin4c -lvin4 -lssl -lcrypto -lm
OBJS = event-sched.o queue.o
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment