Added SunOS to the list of targets + fixed a sort specificity

This commit is contained in:
kwyxz 2018-01-11 14:48:43 -08:00
parent 39cc418e2e
commit a11decf61d
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,7 @@ PTHREADLIB=-lpthread
SOCKETLIB=-lc
SOCKETHEADER=
INCLUDES='usr/include usr/local/include'
SORT=sort
if [ "$OS" = 'BSD' ]; then
[ -d /usr/local/include ] && add_dirs INCLUDE /usr/local/include
@ -39,6 +40,8 @@ elif [ "$OS" = 'Win32' ]; then
DYLIB=
elif [ "$OS" = 'Cygwin' ]; then
die 1 'Error: Cygwin is not a supported platform. See https://bot.libretro.com/docs/compilation/windows/'
elif [ "$OS" = 'SunOS' ]; then
SORT=gsort
fi
add_define MAKEFILE DYLIB_LIB "$DYLIB"
@ -514,6 +517,6 @@ while [ $# -gt 0 ]; do
var="${tmpvar#HAVE_}"
vars="${vars} $var"
done
VARS="$(printf %s "$vars" | tr ' ' '\n' | sort)"
VARS="$(printf %s "$vars" | tr ' ' '\n' | $SORT)"
create_config_make config.mk $(printf %s "$VARS")
create_config_header config.h $(printf %s "$VARS")

View File

@ -36,6 +36,7 @@ if [ -z "$CROSS_COMPILE" ] || [ -z "$OS" ]; then
'CYGWIN'*) OS='Cygwin';;
'Haiku') OS='Haiku';;
'MINGW'*) OS='Win32';;
'SunOS') OS='SunOS';;
*) OS="Win32";;
esac
fi