Index: ruby2.3-2.3.3/configure.in =================================================================== --- ruby2.3-2.3.3.orig/configure.in +++ ruby2.3-2.3.3/configure.in @@ -3104,7 +3104,7 @@ if test "$rb_cv_binary_elf" = yes; then fi AS_CASE(["$target_os"], -[linux* | gnu* | k*bsd*-gnu | bsdi* | kopensolaris*-gnu | nacl], [ +[linux* | gnu* | k*bsd*-gnu | bsdi* | solaris* | nacl], [ if test "$rb_cv_binary_elf" = no; then with_dln_a_out=yes else @@ -3168,22 +3168,6 @@ if test "$with_dln_a_out" != yes; then RPATHFLAG=' +b %1$-s' fi rb_cv_dlopen=yes], - [solaris*], [ if test "$GCC" = yes; then - : ${LDSHARED='$(CC) -shared'} - if test "$rb_cv_prog_gnu_ld" = yes; then - LDFLAGS="$LDFLAGS -Wl,-E" - fi - else - : ${LDSHARED='$(CC) -G'} - fi - if test "$ac_cv_sizeof_voidp" = 8; then - : ${LIBPATHENV=LD_LIBRARY_PATH_64} - : ${PRELOADENV=LD_PRELOAD_64} - else - : ${LIBPATHENV=LD_LIBRARY_PATH_32} - : ${PRELOADENV=LD_PRELOAD_32} - fi - rb_cv_dlopen=yes], [sunos*], [ : ${LDSHARED='$(LD) -assert nodefinitions'} rb_cv_dlopen=yes], [irix*], [ : ${LDSHARED='$(LD) -shared'} @@ -3199,7 +3183,7 @@ if test "$with_dln_a_out" != yes; then [bsdi3*], [ AS_CASE(["$CC"], [*shlicc*], [ : ${LDSHARED='$(CC) -r'} rb_cv_dlopen=yes])], - [linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu | haiku*], [ + [linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | solaris* | haiku*], [ : ${LDSHARED='$(CC) -shared'} if test "$rb_cv_binary_elf" = yes; then LDFLAGS="$LDFLAGS -Wl,-export-dynamic" @@ -3481,7 +3465,7 @@ else fi AS_CASE(["$target_os"], - [linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu], [ + [linux* | gnu* | k*bsd*-gnu | solaris*], [ STRIP="$STRIP -S -x"], [darwin*], [ STRIP="$STRIP -A -n"]) @@ -3685,7 +3669,7 @@ AS_CASE("$enable_shared", [yes], [ [sunos4*], [ LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so' ], - [linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu | haiku*], [ + [linux* | gnu* | k*bsd*-gnu | atheos* | solaris* | haiku*], [ LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR)'" $LDFLAGS $LDFLAGS_OPTDIR" LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so' if test "$load_relative" = yes; then @@ -4303,6 +4287,7 @@ if test "${universal_binary-no}" = yes ; else arch="${target_cpu}-${target_os}" AS_CASE(["$arch"], [le32-nacl], [arch="pnacl"]) + AS_CASE(["$target_os"],[solaris*],[arch="$target_cpu-illumos"]) AC_DEFINE_UNQUOTED(RUBY_PLATFORM, "$arch") fi