gcc and CGO

main
Robert 7 months ago
parent cf07245dc8
commit 9524dc8130
  1. 6
      install.sh
  2. 1
      reBuild.sh

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
export CGO_ENABLED=1
# See if the User can become ROOT user # See if the User can become ROOT user
if [ "$EUID" -eq 0 ]; then if [ "$EUID" -eq 0 ]; then
USE_SUPER="" USE_SUPER=""
@ -77,6 +78,11 @@ if [ ! -x /usr/bin/tar ]; then
/usr/bin/echo "Installing tar..." /usr/bin/echo "Installing tar..."
auto-pkg-installer tar auto-pkg-installer tar
fi 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 [ ! -x /usr/local/go/bin/go ]; then
if [ ! -d ~/Downloads ]; then if [ ! -d ~/Downloads ]; then
/usr/bin/mkdir -p ~/Downloads /usr/bin/mkdir -p ~/Downloads

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
export CGO_ENABLED=1
/usr/local/bin/go build -o execguard /usr/local/bin/go build -o execguard
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
/usr/bin/sudo cp execguard /usr/local/bin/ /usr/bin/sudo cp execguard /usr/local/bin/

Loading…
Cancel
Save