github.com/ali-iotechsys/cli@v20.10.0+incompatible/scripts/build/plugins-osx (about)

     1  #!/usr/bin/env bash
     2  #
     3  # Build a static binary for the host OS/ARCH
     4  #
     5  
     6  set -eu -o pipefail
     7  
     8  source ./scripts/build/.variables
     9  
    10  export CGO_ENABLED=1
    11  export GOOS=darwin
    12  export GOARCH=amd64
    13  export CC=o64-clang
    14  export CXX=o64-clang++
    15  export LDFLAGS="$LDFLAGS -linkmode external -s"
    16  export LDFLAGS_STATIC_DOCKER='-extld='${CC}
    17  
    18  source ./scripts/build/plugins