From d2408b680e286f545df258607e9cb64ff51bc890 Mon Sep 17 00:00:00 2001 From: dvkt Date: Sat, 11 Jan 2020 12:38:05 -0800 Subject: [PATCH] Have the linker strip the binary (cross-compile friendly) --- .cargo/config | 2 ++ Makefile | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..919fe30 --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[build] +rustflags = ["-C", "link-arg=-s"] diff --git a/Makefile b/Makefile index b06514b..34ebe6b 100644 --- a/Makefile +++ b/Makefile @@ -25,10 +25,9 @@ debug: $(PHETCH_DEBUG) clean: @rm -rf target -# Build and strip the release version +# Build the release version $(PHETCH_RELEASE): $(RSFILES) cargo build --release - strip $@ # Build the debug version $(PHETCH_DEBUG): $(RSFILES)