From b4d11f0abec3caeff89487abce04ed577e17fd61 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Mon, 19 May 2025 15:12:44 +0200 Subject: [PATCH] added an makefile for downgrading the binary to DEbian Bookworm --- .gitignore | 1 + Makefile | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 7f45795..41e460f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target /test /racme.toml +racme diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..df5204f --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +POLYFILL=polyfill-glibc +TARGET_GLIBC=2.36 +SOURCEFILES=$(wildcard src/**/*.rs) + +target/release/racme: Cargo.toml Cargo.lock $(SOURCEFILES) + cargo build --release + +racme: target/release/racme + $(POLYFILL) --target-glibc=$(TARGET_GLIBC) --rename-dynamic-symbols=polyfill-glibc-renames.txt --output=racme $^ + strip racme