diff --git a/Makefile b/Makefile index 88418b0..e08c4c1 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,6 @@ export BUILD_VERSION ?= 1.15.0 export DEBIAN_FRONTEND ?= noninteractive export LANG ?= C.UTF-8 export TZ ?= UTC -export RUSTFLAGS ?= -C link-arg=-s DB ?= postgresql SRC := src @@ -20,9 +19,8 @@ build-src: .PHONY: build-bin build-bin: rustup set profile minimal && \ - cp patch/main.rs src/src/ && \ cd $(SRC) && \ - rustup target add x86_64-unknown-linux-musl && \ + RUSTFLAGS="-C link-arg=-s" rustup target add x86_64-unknown-linux-musl && \ BWRS_VERSION="$${BUILD_VERSION##v}" cargo build -j 8 --features $(DB) --release .PHONY: clean