From b10a4158faec727003816dc1d085ff05566fc120 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Mon, 10 Feb 2025 14:26:17 +0100 Subject: [PATCH] add build script for static binary --- .gitignore | 1 + build-static.sh | 4 ++++ 2 files changed, 5 insertions(+) create mode 100755 build-static.sh diff --git a/.gitignore b/.gitignore index de8e66b..28e09b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /ethercat +/ethercat-static diff --git a/build-static.sh b/build-static.sh new file mode 100755 index 0000000..659751f --- /dev/null +++ b/build-static.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -v +rm ethercat-static +gcc -Wall -Wextra -fPIE -pie -static -static-libgcc ethercat.c -o ethercat-static