$OpenBSD: patch-config_mk,v 1.3 2013/01/07 14:15:16 bentley Exp $ --- config.mk.orig Sat Jan 5 06:15:12 2013 +++ config.mk Sun Jan 6 18:07:51 2013 @@ -15,13 +15,13 @@ LIBDIR = ${PREFIX}/lib VERSION = 1.7 # includes and libs -INCLUDES = -I. -I${INCDIR} -I/usr/include -LIBS = -L${LIBDIR} -L/usr/lib -lc +INCLUDES += -I${INCDIR} +LIBS = -L${LIBDIR} # uncomment and comment other variables for compiling on Solaris #LIBS = -L${LIBDIR} -L/usr/lib -lc -lsocket -lnsl #CFLAGS = -g ${INCLUDES} -DVERSION=\"${VERSION}\" # compiler CC = cc -CFLAGS = -g -O0 -W -Wall ${INCLUDES} -DVERSION=\"${VERSION}\" -LDFLAGS = ${LIBS} +CFLAGS += ${INCLUDES} -DVERSION=\"${VERSION}\" +LDFLAGS += ${LIBS}