Skip to content

Commit a39343a

Browse files
committed
scripts/bootstrap-prefix: use isainfo to pick up current arch
uname -p on Solaris will return historical values, so use isainfo to get the currently targetted architecture Signed-off-by: Fabian Groffen <[email protected]>
1 parent 4abb9ba commit a39343a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/bootstrap-prefix.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -3409,10 +3409,16 @@ if [[ -z ${CHOST} ]]; then
34093409
fi
34103410
;;
34113411
SunOS)
3412-
case $(uname -p) in
3412+
case $(isainfo -n) in
3413+
amd64)
3414+
CHOST="x86_64-pc-solaris$(uname -r | sed 's|5|2|')"
3415+
;;
34133416
i386)
34143417
CHOST="i386-pc-solaris$(uname -r | sed 's|5|2|')"
34153418
;;
3419+
sparcv9)
3420+
CHOST="sparcv9-sun-solaris$(uname -r | sed 's|5|2|')"
3421+
;;
34163422
sparc)
34173423
CHOST="sparc-sun-solaris$(uname -r | sed 's|5|2|')"
34183424
;;

0 commit comments

Comments
 (0)