commit 06ee9b617fc7b66235e57e9b666cc61171a5a90f
parent 8b758f93767a26dca4f3d384c06553d6017a9dc8
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 11 Jul 2023 09:48:27 +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:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -154,8 +154,9 @@ TEST_SRC =\
TEST_OBJ = $(TEST_SRC:.c=.o)
TEST_DEP = $(TEST_SRC:.c=.d)
-SSP_CFLAGS = $$($(PKG_CONFIG) --with-path=./ $(PCFLAGS) --cflags star-sp-local.pc)
-SSP_LIBS = $$($(PKG_CONFIG) --with-path=./ $(PCFLAGS) --libs star-sp-local.pc)
+PKG_CONFIG_LOCAL = PKG_CONFIG_PATH="./:$${PKG_CONFIG_PATH}" $(PKG_CONFIG)
+SSP_CFLAGS = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --cflags star-sp-local.pc)
+SSP_LIBS = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --libs star-sp-local.pc)
build_tests: build_library $(TEST_DEP) .test
@$(MAKE) -fMakefile -f.test $$(for i in $(TEST_DEP); do echo -f"$${i}"; done) test_bin
diff --git a/config.mk b/config.mk
@@ -19,6 +19,7 @@ RANLIB = ranlib
################################################################################
# Dependencies
################################################################################
+PCFLAGS_SHARED =
PCFLAGS_STATIC = --static
PCFLAGS = $(PCFLAGS_$(LIB_TYPE))