--- make/template/main.mk.orig 2012-07-13 10:38:01.000000000 -0500 +++ make/template/main.mk 2012-08-14 23:58:06.816315279 -0500 @@ -58,6 +58,10 @@ @IFEQ $(SYSTEM) linux LDLIBS += -ldl -lrt @ENDIF +@IFEQ $(SYSTEM) freebsd + CXXFLAGS += -I/usr/local/include + LDFLAGS += -L/usr/local/lib +@ENDIF @IFEQ $(SYSTEM) gnukfreebsd LDLIBS += -ldl -lrt @ENDIF @@ -124,7 +128,7 @@ CXXFLAGS += -DPURE_STATIC @ENDIF -@DO_EXPORT RUNCC RUNLD CXXFLAGS LDLIBS PICLDFLAGS VERBOSE SOCKETENGINE CORELDFLAGS +@DO_EXPORT RUNCC RUNLD CXXFLAGS LDLIBS PICLDFLAGS VERBOSE SOCKETENGINE CORELDFLAGS LDFLAGS @DO_EXPORT SOURCEPATH BUILDPATH PURE_STATIC SPLIT_CC # Default target