]> git.proxmox.com Git - proxmox-backup.git/commitdiff
buildsys: workaround linkage issues from openid/curl build server stuff separate
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Jul 2021 04:16:28 +0000 (06:16 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Jul 2021 04:16:32 +0000 (06:16 +0200)
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>
Makefile

index 690f766403c1aa34fb13ecfdd7540f99567ce182..46bebfb99db64b82d8f59a6d0af555fea10e8fee 100644 (file)
--- 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