Skip to content

Commit

Permalink
scripts/bootstrap-prefix: use isainfo to pick up current arch
Browse files Browse the repository at this point in the history
uname -p on Solaris will return historical values, so use isainfo to get
the currently targetted architecture

Signed-off-by: Fabian Groffen <[email protected]>
  • Loading branch information
grobian committed Jul 25, 2024
1 parent 4abb9ba commit a39343a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/bootstrap-prefix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3409,10 +3409,16 @@ if [[ -z ${CHOST} ]]; then
fi
;;
SunOS)
case $(uname -p) in
case $(isainfo -n) in
amd64)
CHOST="x86_64-pc-solaris$(uname -r | sed 's|5|2|')"
;;
i386)
CHOST="i386-pc-solaris$(uname -r | sed 's|5|2|')"
;;
sparcv9)
CHOST="sparcv9-sun-solaris$(uname -r | sed 's|5|2|')"
;;
sparc)
CHOST="sparc-sun-solaris$(uname -r | sed 's|5|2|')"
;;
Expand Down

0 comments on commit a39343a

Please sign in to comment.