Hi,

This patch solved me a build problem when tring to build dwm with the new 
freetype support on
Openbsd.
I changed config.mk to act as st config.mk, using pkg-config to find
includes.
Patch attached.

-- 
Regards

Henrique Lengler 
diff --git a/config.mk b/config.mk
index cf95913..ccc6653 100644
--- a/config.mk
+++ b/config.mk
@@ -15,8 +15,10 @@ XINERAMALIBS  = -lXinerama
 XINERAMAFLAGS = -DXINERAMA
 
 # includes and libs
-INCS = -I${X11INC} -I/usr/include/freetype2
-LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} -lfontconfig -lXft
+INCS = -I${X11INC} \
+       `pkg-config --cflags fontconfig` \
+       `pkg-config --cflags freetype2`
+LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} -lXft
 
 # flags
 CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" 
${XINERAMAFLAGS}

Reply via email to