From 5f69a2e5a410fa5487cc3e2b1a051391a20d6ea0 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 18 Oct 2016 06:55:15 +0000 Subject: [PATCH] separated_version.mk: option for linux [ci skip] * defs/separated_version.mk (RUBY_VERSION_DLDFLAGS): move linux specific option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- defs/separated_version.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defs/separated_version.mk b/defs/separated_version.mk index 9211b117f56643..f086f4b24a4f7c 100644 --- a/defs/separated_version.mk +++ b/defs/separated_version.mk @@ -9,7 +9,7 @@ RUBY_VERSION_SO = $(subst ruby,ruby_version,$(LIBRUBY_SO)) RUBY_VERSION_DLDFLAGS := $(patsubst @executable_path/%/$(LIBRUBY_SO),@loader_path/$(RUBY_VERSION_SO),$(DLDFLAGS)) -exported_symbol=Init_version else ifneq ($(findstring -soname,$(DLDFLAGS)),) RUBY_VERSION_SO = $(subst ruby,ruby_version,$(LIBRUBY_SO)) -RUBY_VERSION_DLDFLAGS := $(subst ruby,ruby_version,$(DLDFLAGS)) +RUBY_VERSION_DLDFLAGS := $(subst ruby,ruby_version,$(DLDFLAGS)) -Wl,-rpath-link,'$${ORIGIN}' else ERROR endif @@ -28,7 +28,7 @@ $(LIBRUBY_SO): $(RUBY_VERSION_SO) $(RUBY_VERSION_SO): version.$(OBJEXT) $(ECHO) linking shared-library $@ - $(LDSHARED) $(RUBY_VERSION_DLDFLAGS) -Wl,-rpath-link,'$${ORIGIN}' version.$(OBJEXT) $(OUTFLAG)$@ + $(LDSHARED) $(RUBY_VERSION_DLDFLAGS) version.$(OBJEXT) $(OUTFLAG)$@ -$(Q) $(MINIRUBY) -e 'ARGV.each{|link|' \ -e 'File.delete link rescue nil' \ -e 'File.symlink "$(RUBY_VERSION_SO)", link' \