$NetBSD: patch-ab,v 1.2 2008/03/03 11:45:17 sketch Exp $ --- Makefile.orig 2007-08-20 07:42:05.000000000 +0100 +++ Makefile 2008-03-03 11:05:32.976857000 +0000 @@ -14,6 +14,8 @@ # os x lib += -L/usr/local/mysql +inc = -I${MYSQL_PREFIX}/include/mysql +lib = -L${MYSQL_PREFIX}/lib/mysql -Wl,-R${MYSQL_PREFIX}/lib/mysql CC := gcc CPPFLAGS := -O $(inc) @@ -23,6 +25,7 @@ ifeq "${OS_NAME}" "sunos" LDLIBS += -lsocket -lnsl -lm +CPPFLAGS += -DMSG_NOSIGNAL=0 endif .c.o: