Skip to content

Commit a7ae74d

Browse files
committed
Only set -static for openocd and risc-v toolchain builds
1 parent 4a38aed commit a7ae74d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

build_linux.sh

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ set -euo pipefail
66
SKIP_RISCV=${SKIP_RISCV-0}
77
SKIP_OPENOCD=${SKIP_OPENOCD-0}
88

9-
export CFLAGS=-static
10-
export LDFLAGS=-static
11-
129
# Install prerequisites
1310
sudo apt install -y jq cmake libtool automake libusb-1.0-0-dev libhidapi-dev libftdi1-dev
1411
# RISC-V prerequisites

packages/linux/openocd/build-openocd.sh

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -euo pipefail
44

5+
export CFLAGS=-static
6+
export LDFLAGS=-static
7+
58
cd openocd
69
sed -i -e 's/uint /unsigned int /g' ./src/flash/nor/rp2040.c
710
./bootstrap

packages/linux/riscv/build-riscv-gcc.sh

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -euo pipefail
44

5+
export CFLAGS=-static
6+
export LDFLAGS=-static
7+
58
INSTALLDIR="riscv-install"
69
rm -rf $INSTALLDIR
710
mkdir -p $INSTALLDIR

0 commit comments

Comments
 (0)