From 9524dc81301f19583acdd3276865e2cfbc189266 Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 20 May 2025 21:15:15 -0400 Subject: [PATCH] gcc and CGO --- install.sh | 6 ++++++ reBuild.sh | 1 + 2 files changed, 7 insertions(+) diff --git a/install.sh b/install.sh index dc7ee7a..49eed4b 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,5 @@ #!/bin/bash +export CGO_ENABLED=1 # See if the User can become ROOT user if [ "$EUID" -eq 0 ]; then USE_SUPER="" @@ -77,6 +78,11 @@ if [ ! -x /usr/bin/tar ]; then /usr/bin/echo "Installing tar..." auto-pkg-installer tar fi +if [ ! -x /usr/bin/gcc ]; then + /usr/bin/echo "Installing gcc...the GNU c Compiler..." + auto-pkg-installer gcc +fi + if [ ! -x /usr/local/go/bin/go ]; then if [ ! -d ~/Downloads ]; then /usr/bin/mkdir -p ~/Downloads diff --git a/reBuild.sh b/reBuild.sh index 0dc67f1..dd205a6 100755 --- a/reBuild.sh +++ b/reBuild.sh @@ -1,4 +1,5 @@ #!/bin/bash +export CGO_ENABLED=1 /usr/local/bin/go build -o execguard if [ $? -eq 0 ]; then /usr/bin/sudo cp execguard /usr/local/bin/