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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-12 06:16:28 +02:00
parent 1900d7810c
commit 991be99c37

View File

@ -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