From 991be99c37c6f55f43a3d9a2c54edb2a8dc6d4f2 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 12 Jul 2021 06:16:28 +0200 Subject: [PATCH] buildsys: workaround linkage issues from openid/curl build server stuff separate this blows up build times, but we do not plan for using it longer than required (i.e., the server is finally split into its own binary crate providing only those binaries). Note, using `cargo b --release` to build is naturally unaffected by this change, so for dev builds just continue to use that. Signed-off-by: Thomas Lamprecht --- Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 690f7664..46bebfb9 100644 --- a/Makefile +++ b/Makefile @@ -149,7 +149,20 @@ docs: cargo-build .PHONY: cargo-build cargo-build: - $(CARGO) build $(CARGO_BUILD_ARGS) + RUSTFLAGS="--cfg openid" $(CARGO) build $(CARGO_BUILD_ARGS) \ + --bin proxmox-backup-api --bin proxmox-backup-proxy \ + --bin proxmox-backup-manager --bin docgen + $(CARGO) build $(CARGO_BUILD_ARGS) \ + --bin dump-catalog-shell-cli \ + --bin pmt --bin pmtx \ + --bin proxmox-backup-banner \ + --bin proxmox-backup-client \ + --bin proxmox-daily-update \ + --bin proxmox-file-restore \ + --bin proxmox-restore-daemon \ + --bin proxmox-tape \ + --bin pxar \ + --bin sg-tape-cmd $(COMPILED_BINS): cargo-build