From fb43bc9e2ffc781a3dddde01ae33cc703683cb98 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 4 Jun 2020 01:38:06 +0200 Subject: [PATCH] remove patch --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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