mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ruby-runner: RUBY_INSTALL_NAME
* Makefile.in (ruby-runner), template/ruby-runner.c.in: use expanded RUBY_INSTALL_NAME, not RUBY_BASE_NAME. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a8438d3033
commit
48a66a58b0
2 changed files with 5 additions and 3 deletions
|
@ -256,7 +256,7 @@ ruby-runner.c: template/ruby-runner.c.in
|
||||||
@./config.status --file=$@:$(srcdir)/template/$(@F).in
|
@./config.status --file=$@:$(srcdir)/template/$(@F).in
|
||||||
|
|
||||||
ruby-runner$(EXEEXT): ruby-runner.c
|
ruby-runner$(EXEEXT): ruby-runner.c
|
||||||
$(Q) $(PURIFY) $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(LIBS) $(OUTFLAG)$@ ruby-runner.c
|
$(Q) $(PURIFY) $(CC) $(CFLAGS) $(CPPFLAGS) -DRUBY_INSTALL_NAME=$(RUBY_INSTALL_NAME) $(LDFLAGS) $(LIBS) $(OUTFLAG)$@ ruby-runner.c
|
||||||
|
|
||||||
$(RBCONFIG): $($(CROSS_COMPILING:no=)PREP)
|
$(RBCONFIG): $($(CROSS_COMPILING:no=)PREP)
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
#define BUILDDIR "@abs_top_builddir@"
|
#define BUILDDIR "@abs_top_builddir@"
|
||||||
#define LIBPATHENV "@LIBPATHENV@"
|
#define LIBPATHENV "@LIBPATHENV@"
|
||||||
#define PATH_SEP '@PATH_SEPARATOR@'
|
#define PATH_SEP '@PATH_SEPARATOR@'
|
||||||
#define RUBY_INSTALL_NAME "@RUBY_BASE_NAME@"
|
|
||||||
|
#define STRINGIZE(expr) STRINGIZE0(expr)
|
||||||
|
#define STRINGIZE0(expr) #expr
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
|
@ -28,6 +30,6 @@ main(int argc, char **argv)
|
||||||
libpath = builddir;
|
libpath = builddir;
|
||||||
}
|
}
|
||||||
setenv(LIBPATHENV, libpath, 1);
|
setenv(LIBPATHENV, libpath, 1);
|
||||||
execv(BUILDDIR"/"RUBY_INSTALL_NAME, argv);
|
execv(BUILDDIR"/"STRINGIZE(RUBY_INSTALL_NAME), argv);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue