On Tue, May 11, 2021 at 09:21:32PM -0400, Steve Ward wrote:
> On Mon, May 10, 2021 at 5:31 AM Christos Margiolis
> <chris...@christosmarg.xyz> wrote:
> >
> > Hello Steve,
> >
> > On Sun, May 09, 2021 at 10:31:49PM -0400, Steve Ward wrote:
> > > Do these commands give the desired output on FreeBSD?
> > > `pkg-config --cflags x11`
> > > `pkg-config --libs   x11`
> >
> > I guess it's right, althought I'm not sure about `pthread`,
> > so I'm posting it here too:
> >
> > $ pkg-config --cflags x11
> > -I/usr/local/include -D_THREAD_SAFE -pthread
> >
> > $ pkg-config --libs x11
> > -L/usr/local/lib -lX11
> >
> 
> In my config.mk I just have this:
> 
> # includes and libs
> INCS = `pkg-config --cflags fontconfig freetype2 x11 xft`
> LIBS = `pkg-config --libs   fontconfig freetype2 x11 xft` ${XINERAMALIBS}
> 
> 
> There's no need for any of these vars.

Thats because you're only considering your own use-case.
These variables are useful, for example for ports/packagers.

> X11INC
> X11LIB
> FREETYPELIBS
> FREETYPEINC
> 
> I've only built dwm on Linux, though.  HTH.
> 

-- 
Kind regards,
Hiltjo

Reply via email to