summaryrefslogtreecommitdiff
path: root/lang/ruby25/files/patch-configure.ac
diff options
context:
space:
mode:
authorRomain Tartière <romain@FreeBSD.org>2018-09-25 13:11:14 +0000
committerRomain Tartière <romain@FreeBSD.org>2018-09-25 13:11:14 +0000
commit54c14279dc8714371ee303eeba39d77beeb6baff (patch)
tree4337f5ad2d068febaeb7f43ac983d7b88982bd58 /lang/ruby25/files/patch-configure.ac
parentUpdate 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/ruby25/files/patch-configure.ac')
-rw-r--r--lang/ruby25/files/patch-configure.ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/ruby25/files/patch-configure.ac b/lang/ruby25/files/patch-configure.ac
index 200298eff208..08924ed4396a 100644
--- a/lang/ruby25/files/patch-configure.ac
+++ b/lang/ruby25/files/patch-configure.ac
@@ -18,11 +18,20 @@
void *arg, int (*compar)(void *, const void *, const void *));
],[ ],
[rb_cv_bsd_qsort_r=yes],
-@@ -3245,7 +3245,6 @@
+@@ -3245,7 +3245,7 @@
: ${LDSHARED='$(CC) -shared'}
AS_IF([test "$rb_cv_binary_elf" = yes], [
LDFLAGS="$LDFLAGS -rdynamic"
- DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$@'
++ DLDFLAGS="$DLDFLAGS "'-Wl,-E'
], [
test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED='$(LD) -Bshareable'
])
+@@ -3724,6 +3723,7 @@
+ SOLIBS='$(LIBS)'
+ LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)'
+ LIBRUBY_SONAME='$(LIBRUBY_SO)'
++ RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS, ['-Wl,-soname,${LIBRUBY_SO}'])
+ AS_IF([test "$rb_cv_binary_elf" != "yes" ], [
+ LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)"
+ LIBRUBY_ALIASES=''