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