Skip to content
Snippets Groups Projects
Commit c164f11e authored by Marcin Ślusarz's avatar Marcin Ślusarz
Browse files

common: support older versions of pkg-config

Older pkg-config (at least 0.27.1) doesn't support multiple
Requires.private's in a single file.
parent b764379f
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,7 @@ libpmemblk libpmemlog libpmemobj: libpmem ...@@ -139,7 +139,7 @@ libpmemblk libpmemlog libpmemobj: libpmem
benchmarks test tools: common benchmarks test tools: common
pkg-cfg-common: pkg-cfg-common:
@printf "version=%s\nlibdir=%s\nprefix=%s\nrasdeps=%s\n" "$(SRCVERSION)" "$(libdir)" "$(prefix)" "$(LIBNDCTL_PKG_CONFIG_DEPS)" > $(PKG_CONFIG_COMMON) @printf "version=%s\nlibdir=%s\nprefix=%s\nrasdeps=%s\n" "$(SRCVERSION)" "$(libdir)" "$(prefix)" "$(LIBNDCTL_PKG_CONFIG_DEPS_VAR)" > $(PKG_CONFIG_COMMON)
$(PKG_CONFIG_COMMON): pkg-cfg-common $(PKG_CONFIG_COMMON): pkg-cfg-common
......
...@@ -390,6 +390,7 @@ ifeq ($(NDCTL_ENABLE),y) ...@@ -390,6 +390,7 @@ ifeq ($(NDCTL_ENABLE),y)
$(error libdaxctl(version >= $(NDCTL_MIN_VERSION)) is missing -- see README) $(error libdaxctl(version >= $(NDCTL_MIN_VERSION)) is missing -- see README)
endif endif
LIBNDCTL_PKG_CONFIG_DEPS := libndctl libdaxctl LIBNDCTL_PKG_CONFIG_DEPS := libndctl libdaxctl
LIBNDCTL_PKG_CONFIG_DEPS_VAR := ,libndctl,libdaxctl
LIBNDCTL_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(LIBNDCTL_PKG_CONFIG_DEPS)) LIBNDCTL_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(LIBNDCTL_PKG_CONFIG_DEPS))
LIBNDCTL_LD_LIBRARY_PATHS := $(shell $(PKG_CONFIG) --variable=libdir $(LIBNDCTL_PKG_CONFIG_DEPS) | sed "s/ /:/") LIBNDCTL_LD_LIBRARY_PATHS := $(shell $(PKG_CONFIG) --variable=libdir $(LIBNDCTL_PKG_CONFIG_DEPS) | sed "s/ /:/")
LIBNDCTL_LIBS := $(shell $(PKG_CONFIG) --libs $(LIBNDCTL_PKG_CONFIG_DEPS)) LIBNDCTL_LIBS := $(shell $(PKG_CONFIG) --libs $(LIBNDCTL_PKG_CONFIG_DEPS))
...@@ -400,6 +401,7 @@ else ...@@ -400,6 +401,7 @@ else
endif endif
export OS_DIMM export OS_DIMM
export LIBNDCTL_PKG_CONFIG_DEPS export LIBNDCTL_PKG_CONFIG_DEPS
export LIBNDCTL_PKG_CONFIG_DEPS_VAR
export LIBNDCTL_CFLAGS export LIBNDCTL_CFLAGS
export LIBNDCTL_LD_LIBRARY_PATHS export LIBNDCTL_LD_LIBRARY_PATHS
export LIBNDCTL_LIBS export LIBNDCTL_LIBS
......
...@@ -4,7 +4,6 @@ Name: libpmemblk ...@@ -4,7 +4,6 @@ Name: libpmemblk
Description: libpmemblk library from PMDK project Description: libpmemblk library from PMDK project
Version: ${version} Version: ${version}
URL: http://pmem.io/pmdk URL: http://pmem.io/pmdk
Requires.private: libpmem Requires.private: libpmem${rasdeps}
Requires.private: ${rasdeps}
Libs: -L${libdir} -lpmemblk Libs: -L${libdir} -lpmemblk
Cflags: -I${includedir} Cflags: -I${includedir}
...@@ -4,7 +4,6 @@ Name: libpmemlog ...@@ -4,7 +4,6 @@ Name: libpmemlog
Description: libpmemlog library from PMDK project Description: libpmemlog library from PMDK project
Version: ${version} Version: ${version}
URL: http://pmem.io/pmdk URL: http://pmem.io/pmdk
Requires.private: libpmem Requires.private: libpmem${rasdeps}
Requires.private: ${rasdeps}
Libs: -L${libdir} -lpmemlog Libs: -L${libdir} -lpmemlog
Cflags: -I${includedir} Cflags: -I${includedir}
...@@ -4,8 +4,7 @@ Name: libpmemobj ...@@ -4,8 +4,7 @@ Name: libpmemobj
Description: libpmemobj library from PMDK project Description: libpmemobj library from PMDK project
Version: ${version} Version: ${version}
URL: http://pmem.io/pmdk URL: http://pmem.io/pmdk
Requires.private: libpmem Requires.private: libpmem${rasdeps}
Requires.private: ${rasdeps}
Libs: -L${libdir} -lpmemobj Libs: -L${libdir} -lpmemobj
Libs.private: -ldl Libs.private: -ldl
Cflags: -I${includedir} Cflags: -I${includedir}
...@@ -4,8 +4,7 @@ Name: libpmempool ...@@ -4,8 +4,7 @@ Name: libpmempool
Description: libpmempool library from PMDK project Description: libpmempool library from PMDK project
Version: ${version} Version: ${version}
URL: http://pmem.io/pmdk URL: http://pmem.io/pmdk
Requires.private: libpmem Requires.private: libpmem${rasdeps}
Requires.private: ${rasdeps}
Libs: -L${libdir} -lpmempool Libs: -L${libdir} -lpmempool
Libs.private: -ldl Libs.private: -ldl
Cflags: -I${includedir} Cflags: -I${includedir}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment