use PKG_CONFIG for cross compilation in gentoo

needed for ebuild validity across different platforms which define their specific PKGCONFIG variable

add underscore in PKG_CONFIG

Closes: #14 [via git-merge-pr]
This commit is contained in:
A. Tammy 2020-04-20 22:04:39 -04:00 committed by Leah Neukirchen
parent 54d95c0610
commit 5fde2a2465
1 changed files with 4 additions and 2 deletions

View File

@ -13,12 +13,14 @@ OBJS= calmwm.o screen.o xmalloc.o client.o menu.o \
search.o util.o xutil.o conf.o xevents.o group.o \
kbfunc.o strlcpy.o strlcat.o y.tab.o \
strtonum.o reallocarray.o
PKG_CONFIG?= pkg-config
CPPFLAGS+= `pkg-config --cflags x11 xft xrandr`
CPPFLAGS+= `${PKG_CONFIG} --cflags x11 xft xrandr`
CFLAGS?= -Wall -O2 -g -D_GNU_SOURCE
LDFLAGS+= `pkg-config --libs x11 xft xrandr`
LDFLAGS+= `${PKG_CONFIG} --libs x11 xft xrandr`
MANPREFIX?= ${PREFIX}/share/man