From 54c14279dc8714371ee303eeba39d77beeb6baff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Tue, 25 Sep 2018 13:11:14 +0000 Subject: 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 --- lang/ruby25/files/patch-configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lang/ruby25/files/patch-configure.ac') 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='' -- cgit v1.2.3