| 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # Make a statically linked build. Works with GNU libc and musl libc. |
| 4 | # |
| 5 | # Usage: |
| 6 | # build/static-oils.sh |
| 7 | |
| 8 | set -o nounset |
| 9 | set -o pipefail |
| 10 | set -o errexit |
| 11 | |
| 12 | main() { |
| 13 | LDFLAGS='-static' _build/oils.sh \ |
| 14 | --suffix '-static' --without-readline --skip-rebuild |
| 15 | } |
| 16 | |
| 17 | main "$@" |