Skip to content

Commit

Permalink
Don't use /usr/bin/cc on Solaris, look in /opt/developerstudio*.
Browse files Browse the repository at this point in the history
--HG--
branch : 1.8
  • Loading branch information
millert committed Feb 9, 2021
1 parent 5bacbf0 commit caa666c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions mkpkg
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,16 @@ if [ "$crossbuild" = "false" ]; then
;;
sol[0-9]*)
# Use the Sun Studio C compiler on Solaris if possible
if [ -z "$CC" -a -x /usr/bin/cc ]; then
CC=/usr/bin/cc; export CC
if [ -z "$CFLAGS" ]; then
CFLAGS=-O; export CFLAGS
fi
if [ -z "$CC" ]; then
for f in /opt/developerstudio12.[9876]/bin/cc /opt/solarisstudio12.[43]/bin/cc; do
if [ -x $f ]; then
CC=$f; export CC
if [ -z "$CFLAGS" ]; then
CFLAGS=-O; export CFLAGS
fi
break
fi
done
fi
;;
esac
Expand Down

0 comments on commit caa666c

Please sign in to comment.