Skip to content
Snippets Groups Projects
Commit 112aa092 authored by Adrien Béraud's avatar Adrien Béraud Committed by Guillaume Roguez
Browse files

contrib: use pkg-static on all pkg-config files

Use pkg-static to convert all generated .pc files.

That is because every contrib package is statically built,
however when the libring library is built,
pkg-config is not called with the --static flag.

It's done by adding an additional target in main.mak.
pkg-static can be safely run multiple times on the same file.

Change-Id: I2e5c47e793ed5516dd3c8aa0446077bfc945adcb
parent 742f1262
No related branches found
No related tags found
No related merge requests found
...@@ -393,9 +393,11 @@ PKGS_MANUAL := $(sort $(PKGS_ENABLE) $(filter-out $(PKGS_DISABLE),$(PKGS_AUTOMAT ...@@ -393,9 +393,11 @@ PKGS_MANUAL := $(sort $(PKGS_ENABLE) $(filter-out $(PKGS_DISABLE),$(PKGS_AUTOMAT
PKGS_DEPS := $(filter-out $(PKGS_FOUND) $(PKGS_MANUAL),$(sort $(foreach p,$(PKGS_MANUAL),$(DEPS_$(p))))) PKGS_DEPS := $(filter-out $(PKGS_FOUND) $(PKGS_MANUAL),$(sort $(foreach p,$(PKGS_MANUAL),$(DEPS_$(p)))))
PKGS := $(sort $(PKGS_MANUAL) $(PKGS_DEPS)) PKGS := $(sort $(PKGS_MANUAL) $(PKGS_DEPS))
convert-static:
for p in $(PREFIX)/lib/pkgconfig/*.pc; do $(SRC)/pkg-static.sh $$p; done
fetch: $(PKGS:%=.sum-%) fetch: $(PKGS:%=.sum-%)
fetch-all: $(PKGS_ALL:%=.sum-%) fetch-all: $(PKGS_ALL:%=.sum-%)
install: $(PKGS:%=.%) install: $(PKGS:%=.%) convert-static
mostlyclean: mostlyclean:
-$(RM) $(foreach p,$(PKGS_ALL),.$(p) .sum-$(p) .dep-$(p)) -$(RM) $(foreach p,$(PKGS_ALL),.$(p) .sum-$(p) .dep-$(p))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment