Skip to content

Commit f061764

Browse files
committed
buildsystem: export SED variable
1 parent 6aebbb3 commit f061764

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/006-gcc-stage2.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ TARGET_ALIAS="ee"
3636
TARG_XTRA_OPTS=""
3737
TARGET_CFLAGS="-O2 -gdwarf-2 -gz"
3838
OSVER=$(uname)
39+
GSED=$(which sed)
3940

4041
## If using MacOS Apple, set gmp, mpfr and mpc paths using TARG_XTRA_OPTS
4142
## (this is needed for Apple Silicon but we will do it for all MacOS systems)
@@ -51,6 +52,7 @@ if [ "$(uname -s)" = "Darwin" ]; then
5152
alias sed='gsed'
5253
TARG_XTRA_OPTS="--with-system-zlib --with-libiconv_prefix=$MACPORT_BASE --with-gmp=$MACPORT_BASE --with-mpfr=$MACPORT_BASE --with-mpc=$MACPORT_BASE"
5354
fi
55+
GSED=$(which gsed)
5456
fi
5557
5658
## Determine the maximum number of processes that Make can work with.
@@ -67,6 +69,7 @@ for TARGET in "mips64r5900el-ps2-elf"; do
6769
CFLAGS_FOR_TARGET="$TARGET_CFLAGS" \
6870
CXXFLAGS_FOR_TARGET="$TARGET_CFLAGS" \
6971
../configure \
72+
SED="$GSED" \
7073
--quiet \
7174
--prefix="$PS2DEV/$TARGET_ALIAS" \
7275
--target="$TARGET" \

0 commit comments

Comments
 (0)