From 1f4d6e14812f4cbe816fa7cecf3895ac0880a9ed Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 9 Mar 2021 21:00:00 +0100 Subject: Add PKGCONFIG_FLAGS to Makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 2 +- mk/method-linux-drm=yes.mk | 4 ++-- mk/method-x-randr=yes.mk | 4 ++-- mk/method-x-vidmode=yes.mk | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 161893f..6e81556 100644 --- a/Makefile +++ b/Makefile @@ -188,7 +188,7 @@ libgamma.pc: config.h Makefile $(METHOD_CONFS) printf '%s\n'\ 'Cflags: -I$${includedir}'\ 'Libs: -L$${libdir} -lgamma'\ - "Libs.private: $$(pkg-config --libs $(DEPS_METHODS)) $(LDFLAGS_QUARTZ_GC)"\ + "Libs.private: $$(pkg-config $(PKGCONFIG_FLAGS) --libs $(DEPS_METHODS)) $(LDFLAGS_QUARTZ_GC)"\ >> $@ libgamma.librarian: config.h Makefile $(METHOD_CONFS) diff --git a/mk/method-linux-drm=yes.mk b/mk/method-linux-drm=yes.mk index 3867bf6..6d8f56f 100644 --- a/mk/method-linux-drm=yes.mk +++ b/mk/method-linux-drm=yes.mk @@ -1,8 +1,8 @@ HDR_LINUX_DRM = method-linux-drm.h PARAMS_LINUX_DRM = LIBGAMMA_METHOD_LINUX_DRM linux_drm 16 ramps16 CPPFLAGS_LINUX_DRM = -DHAVE_LIBGAMMA_METHOD_LINUX_DRM -CFLAGS_LINUX_DRM = $$(pkg-config --cflags libdrm) -LDFLAGS_LINUX_DRM = $$(pkg-config --libs libdrm) +CFLAGS_LINUX_DRM = $$(pkg-config $(PKGCONFIG_FLAGS) --cflags libdrm) +LDFLAGS_LINUX_DRM = $$(pkg-config $(PKGCONFIG_FLAGS) --libs libdrm) DEPS_LINUX_DRM = libdrm OBJ_LINUX_DRM =\ diff --git a/mk/method-x-randr=yes.mk b/mk/method-x-randr=yes.mk index 0690df5..07a55e9 100644 --- a/mk/method-x-randr=yes.mk +++ b/mk/method-x-randr=yes.mk @@ -1,8 +1,8 @@ HDR_X_RANDR = method-x-randr.h PARAMS_X_RANDR = LIBGAMMA_METHOD_X_RANDR x_randr 16 ramps16 CPPFLAGS_X_RANDR = -DHAVE_LIBGAMMA_METHOD_X_RANDR -CFLAGS_X_RANDR = $$(pkg-config --cflags xcb xcb-randr) -LDFLAGS_X_RANDR = $$(pkg-config --libs xcb xcb-randr) +CFLAGS_X_RANDR = $$(pkg-config $(PKGCONFIG_FLAGS) --cflags xcb xcb-randr) +LDFLAGS_X_RANDR = $$(pkg-config $(PKGCONFIG_FLAGS) --libs xcb xcb-randr) DEPS_X_RANDR = xcb xcb-randr OBJ_X_RANDR =\ diff --git a/mk/method-x-vidmode=yes.mk b/mk/method-x-vidmode=yes.mk index 29181c1..c709f20 100644 --- a/mk/method-x-vidmode=yes.mk +++ b/mk/method-x-vidmode=yes.mk @@ -1,8 +1,8 @@ HDR_X_VIDMODE = method-x-vidmode.h PARAMS_X_VIDMODE = LIBGAMMA_METHOD_X_VIDMODE x_vidmode 16 ramps16 CPPFLAGS_X_VIDMODE = -DHAVE_LIBGAMMA_METHOD_X_VIDMODE -CFLAGS_X_VIDMODE = $$(pkg-config --cflags x11 xxf86vm) -LDFLAGS_X_VIDMODE = $$(pkg-config --libs x11 xxf86vm) +CFLAGS_X_VIDMODE = $$(pkg-config $(PKGCONFIG_FLAGS) --cflags x11 xxf86vm) +LDFLAGS_X_VIDMODE = $$(pkg-config $(PKGCONFIG_FLAGS) --libs x11 xxf86vm) DEPS_X_VIDMODE = x11 xxf86vm OBJ_X_VIDMODE =\ -- cgit v1.2.3-70-g09d2