$NetBSD: patch-aa,v 1.3 2007/11/25 23:23:25 wiz Exp $ --- config.mk.orig 2007-11-21 20:18:41.000000000 +0000 +++ config.mk @@ -4,19 +4,18 @@ VERSION = 4.7 # Customize below to fit your system # paths -PREFIX = /usr/local -MANPREFIX = ${PREFIX}/share/man +MANPREFIX = ${PREFIX}/${PKGMANDIR} -X11INC = /usr/X11R6/include -X11LIB = /usr/X11R6/lib +X11INC = ${X11BASE}/include +X11LIB = ${X11BASE}/lib # includes and libs INCS = -I. -I/usr/include -I${X11INC} -LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 +LIBS = -lc -L${X11LIB} ${COMPILER_RPATH_FLAG}${X11LIB} -lX11 # flags -CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" -LDFLAGS = -s ${LIBS} +CFLAGS += ${INCS} -DVERSION=\"${VERSION}\" +LDFLAGS += ${LIBS} #CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" #LDFLAGS = -g ${LIBS} @@ -26,4 +25,4 @@ LDFLAGS = -s ${LIBS} #CFLAGS += -xtarget=ultra # compiler and linker -CC = cc +#CC = cc