Gregor Best writes: > I'm on OpenBSD -current at the moment and the latest git HEAD of st compiles > with the following patch: > > diff --git a/config.mk b/config.mk > index 88355c7..f1a24d7 100644 > --- a/config.mk > +++ b/config.mk > @@ -26,3 +26,4 @@ LDFLAGS += -g ${LIBS} > # compiler and linker > CC ?= cc > > +CFLAGS += -I/usr/X11R6/include/freetype2
That's because the st makefiles use $(shell ...) which is a GNUism. Here is a patch that fixes it: diff --git a/config.mk b/config.mk index 88355c7..4d0a869 100644 --- a/config.mk +++ b/config.mk @@ -12,11 +12,11 @@ X11LIB = /usr/X11R6/lib # includes and libs INCS = -I. -I/usr/include -I${X11INC} \ - $(shell pkg-config --cflags fontconfig) \ - $(shell pkg-config --cflags freetype2) + `pkg-config --cflags fontconfig` \ + `pkg-config --cflags freetype2` LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lutil -lXext -lXft \ - $(shell pkg-config --libs fontconfig) \ - $(shell pkg-config --libs freetype2) + `pkg-config --libs fontconfig` \ + `pkg-config --libs freetype2` # flags CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE -D_XOPEN_SOURCE=600