diff --git a/workspaces/nitro-host/Makefile b/workspaces/nitro-host/Makefile index 81d95592d..523cbe75e 100644 --- a/workspaces/nitro-host/Makefile +++ b/workspaces/nitro-host/Makefile @@ -42,7 +42,8 @@ build: --features veracruz-client/nitro \ --features veracruz-server/nitro \ --features cli - strip target/$(PROFILE_PATH)/proxy-attestation-server target/$(PROFILE_PATH)/veracruz-client target/$(PROFILE_PATH)/veracruz-server + # Strip symbols and build ID to save space and avoid reproducibility issues + strip --remove-section=.note.gnu.build-id target/$(PROFILE_PATH)/proxy-attestation-server target/$(PROFILE_PATH)/veracruz-client target/$(PROFILE_PATH)/veracruz-server .PHONY: $(MEASUREMENT_FILE) $(MEASUREMENT_FILE): diff --git a/workspaces/nitro-runtime/Makefile b/workspaces/nitro-runtime/Makefile index 1dbd9e18e..9bd0354d8 100644 --- a/workspaces/nitro-runtime/Makefile +++ b/workspaces/nitro-runtime/Makefile @@ -41,7 +41,8 @@ runtime-manager-enclave: CC_$(ARCH)_unknown_linux_musl=musl-gcc \ cargo build --target $(ARCH)-unknown-linux-musl $(PROFILE_FLAG) $(V_FLAG) \ --features nitro -p runtime_manager_enclave - strip target/$(ARCH)-unknown-linux-musl/$(PROFILE_PATH)/runtime_manager_enclave + # Strip symbols and build ID to save space and avoid reproducibility issues + strip --remove-section=.note.gnu.build-id target/$(ARCH)-unknown-linux-musl/$(PROFILE_PATH)/runtime_manager_enclave doc: cargo doc