From 53b7c9a75f6c5f6224248f4c80d27654aecd25df Mon Sep 17 00:00:00 2001 From: Ben Walton Date: Sun, 31 Oct 2010 15:38:38 -0400 Subject: [PATCH] configure.in: ensure -h passed to solaris linker even when gcc not used The configure/make files are not passing -h $soname to the solaris linker unless gcc is the compiler. This patch adds the alternate case so that libraries are created with a proper SONAME embedded. Signed-off-by: Ben Walton --- ChangeLog | 4 ++++ configure.in | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 25bea4852f3fc4..1f41ab3e6d1b12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Nov 1 04:46:19 2010 Ben Walton + + * configure.in: support -h for solaris linker when gcc not used + Fri Aug 20 10:40:04 2010 Tanaka Akira * ext/pathname/pathname.c (path_expand_path): Pathname#expand_path diff --git a/configure.in b/configure.in index 9456da1e07dc14..47a336bb242d3b 100644 --- a/configure.in +++ b/configure.in @@ -2152,6 +2152,8 @@ AS_CASE("$enable_shared", [yes], [ LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY) lib$(RUBY_SO_NAME).so' if test "$GCC" = yes; then LIBRUBY_DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(@F)' + else + LIBRUBY_DLDFLAGS="$DLDFLAGS "'-h $(@F)' fi XLDFLAGS="$XLDFLAGS "'-R${libdir}' ],