use PKGCONFIG for cross compilation in gentoo

needed for ebuild validity across different platforms which define their specific PKGCONFIG variable
This commit is contained in:
A. Tammy 2020-04-20 22:04:39 -04:00 committed by GitHub
parent 54d95c0610
commit 264f7f684a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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