aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby25/files
diff options
context:
space:
mode:
authorromain <romain@FreeBSD.org>2018-09-25 21:11:14 +0800
committerromain <romain@FreeBSD.org>2018-09-25 21:11:14 +0800
commit2ef4cccc75fe9d49cfe1b72e456b5521a4f5b0d8 (patch)
tree4337f5ad2d068febaeb7f43ac983d7b88982bd58 /lang/ruby25/files
parentf7088244686ad389226879ea133874746ceeaee3 (diff)
downloadfreebsd-ports-gnome-2ef4cccc75fe9d49cfe1b72e456b5521a4f5b0d8.tar.gz
freebsd-ports-gnome-2ef4cccc75fe9d49cfe1b72e456b5521a4f5b0d8.tar.zst
freebsd-ports-gnome-2ef4cccc75fe9d49cfe1b72e456b5521a4f5b0d8.zip
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
Diffstat (limited to 'lang/ruby25/files')
-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=''