commit 3c58bf38b30beda2cc3f6d4acd282356841a364f parent 831bf18933e217bbe0df6ab0e03fadec1cd9f8f7 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Fri, 21 Jul 2023 14:52:28 +0200 No longer use the --with-path option of pkg-config This option is not available on all implementations of the pkg-config utility and can be easily overridden through the use of the PKG_CONFIG_PATH variable. Diffstat:
| M | Makefile | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -129,8 +129,9 @@ TEST_OBJ_S3D = $(TEST_SRC_S3D:.c=.o) TEST_DEP_S3D = $(TEST_SRC_S3D:.c=.d) S3D_FOUND = $(PKG_CONFIG) --atleast-version $(S3D_VERSION) s3d -SMC_CFLAGS = $$($(PKG_CONFIG) --with-path=./ $(PCFLAGS) --cflags smc-local.pc) -SMC_LIBS = $$($(PKG_CONFIG) --with-path=./ $(PCFLAGS) --libs smc-local.pc) +PKG_CONFIG_LOCAL = PKG_CONFIG_PATH="./:$${PKG_CONFIG_PATH}" $(PKG_CONFIG) +SMC_CFLAGS = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --cflags smc-local.pc) +SMC_LIBS = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --libs smc-local.pc) build_tests: build_library $(TEST_DEP) .test @$(MAKE) -fMakefile -f.test\