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
This commit is contained in:
nobu 2016-10-18 06:55:15 +00:00
Родитель fed06646e7
Коммит 5f69a2e5a4
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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' \