dlm_controld: fix pkg-config call for cross build
PATCH 1/1 dlm_controld: fix pkg-config call for cross build
From: Helmut Grohne <[email protected]>
dlm fails to cross build from source, because the upstream Makefile hard codes the build architecture pkg-config. The attached patch makes pkg-config substitutable.
Signed-off-by Valentin Vidic <[email protected]>
--- dlm_controld/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
dlm_controld/Makefile +3 -2
@@ -48,10 +48,11 @@ BIN_LDFLAGS += $(LDFLAGS) -Wl,-z,relro -pie BIN_LDFLAGS += -lpthread -lrt -lcpg -lcmap -lcfg -lquorum LIB_LDFLAGS += $(LDFLAGS) -Wl,-z,relro -pie +PKG_CONFIG ?= pkg-config ifeq ($(USE_SD_NOTIFY),yes) - BIN_CFLAGS += $(shell pkg-config --cflags libsystemd) \ + BIN_CFLAGS += $(shell $(PKG_CONFIG) --cflags libsystemd) \ -DUSE_SD_NOTIFY - BIN_LDFLAGS += $(shell pkg-config --libs libsystemd) + BIN_LDFLAGS += $(shell $(PKG_CONFIG) --libs libsystemd) endif all: $(LIB_TARGET) $(BIN_TARGET)
Signature · 1 line
2.19.1