diff options
author | Romain Tartière <romain@FreeBSD.org> | 2018-09-25 13:11:14 +0000 |
---|---|---|
committer | Romain Tartière <romain@FreeBSD.org> | 2018-09-25 13:11:14 +0000 |
commit | 54c14279dc8714371ee303eeba39d77beeb6baff (patch) | |
tree | 4337f5ad2d068febaeb7f43ac983d7b88982bd58 /lang/ruby24/files/patch-configure.in | |
parent | Update to 0.10.1. (diff) |
Address more linker issues
This resolves a ninja-related issues, corrects passing private args to linker
while building libruby itself (without external LDFLAGS), exports the full
symbols table, and pet 'pkg check -d'. Issues with weechat, vim, facter,
rubygem-hpricot and rubygem-rdiscount should be fixed. See [1] for long story
of hunting and fixing these issues.
Bump PORTREVISIONS accordingly.
PR: 230238 [1], 231361
Submitted by: fuffy
Approved by: fuffy
Notes
Notes:
svn path=/head/; revision=480661
Diffstat (limited to 'lang/ruby24/files/patch-configure.in')
-rw-r--r-- | lang/ruby24/files/patch-configure.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/ruby24/files/patch-configure.in b/lang/ruby24/files/patch-configure.in index fc717548afe3..b72fd938b61d 100644 --- a/lang/ruby24/files/patch-configure.in +++ b/lang/ruby24/files/patch-configure.in @@ -18,11 +18,20 @@ void *arg, int (*compar)(void *, const void *, const void *)); ],[ ], [rb_cv_bsd_qsort_r=yes], -@@ -3423,7 +3423,6 @@ +@@ -3423,7 +3423,7 @@ : ${LDSHARED='$(CC) -shared'} if test "$rb_cv_binary_elf" = yes; then LDFLAGS="$LDFLAGS -rdynamic" - DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$@' ++ DLDFLAGS="$DLDFLAGS "'-Wl,-E' else test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED='$(LD) -Bshareable' fi +@@ -3896,6 +3895,7 @@ + [freebsd*|dragonfly*], [ + SOLIBS='$(LIBS)' + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)' ++ RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS, ['-Wl,-soname,${LIBRUBY_SO}']) + if test "$rb_cv_binary_elf" != "yes" ; then + LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)" + LIBRUBY_ALIASES='' |