diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c78927f..8372195 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ permissions: contents: write env: - SKIP_RISCV: 1 + SKIP_RISCV: 0 jobs: build_windows: diff --git a/packages/linux/openocd/build-openocd.sh b/packages/linux/openocd/build-openocd.sh index 30e4ae7..7303c8b 100755 --- a/packages/linux/openocd/build-openocd.sh +++ b/packages/linux/openocd/build-openocd.sh @@ -2,6 +2,9 @@ set -euo pipefail +export CFLAGS=-static +export LDFLAGS=-static + cd openocd sed -i -e 's/uint /unsigned int /g' ./src/flash/nor/rp2040.c ./bootstrap diff --git a/packages/linux/riscv/build-riscv-gcc.sh b/packages/linux/riscv/build-riscv-gcc.sh index ec0ffd7..4e06520 100755 --- a/packages/linux/riscv/build-riscv-gcc.sh +++ b/packages/linux/riscv/build-riscv-gcc.sh @@ -2,6 +2,9 @@ set -euo pipefail +export CFLAGS=-static +export LDFLAGS=-static + INSTALLDIR="riscv-install" rm -rf $INSTALLDIR mkdir -p $INSTALLDIR