about summary refs log tree commit diff
diff options
context:
space:
mode:
authorA. Tammy <epsilon-0@users.noreply.github.com>2020-04-20 22:04:39 -0400
committerLeah Neukirchen <leah@vuxu.org>2020-04-21 14:14:50 +0200
commit5fde2a2465dff28cdd3f753bd1d18656ae4b5660 (patch)
treed7e299aa172a6f3b44c703157492fdae94609423
parent54d95c06109091056d3f8b2ac73e2ebc30e090e6 (diff)
downloadcwm-5fde2a2465dff28cdd3f753bd1d18656ae4b5660.tar.gz
cwm-5fde2a2465dff28cdd3f753bd1d18656ae4b5660.tar.xz
cwm-5fde2a2465dff28cdd3f753bd1d18656ae4b5660.zip
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]
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 74d0d0d..b1b0580 100644
--- a/Makefile
+++ b/Makefile
@@ -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