Skip to content

Commit

Permalink
Only set -static for openocd and risc-v toolchain builds
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed Sep 23, 2024
1 parent 4a38aed commit a7ae74d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ set -euo pipefail
SKIP_RISCV=${SKIP_RISCV-0}
SKIP_OPENOCD=${SKIP_OPENOCD-0}

export CFLAGS=-static
export LDFLAGS=-static

# Install prerequisites
sudo apt install -y jq cmake libtool automake libusb-1.0-0-dev libhidapi-dev libftdi1-dev
# RISC-V prerequisites
Expand Down
3 changes: 3 additions & 0 deletions packages/linux/openocd/build-openocd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions packages/linux/riscv/build-riscv-gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -euo pipefail

export CFLAGS=-static
export LDFLAGS=-static

INSTALLDIR="riscv-install"
rm -rf $INSTALLDIR
mkdir -p $INSTALLDIR
Expand Down

0 comments on commit a7ae74d

Please sign in to comment.