aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-03 15:09:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-03 15:09:47 +0000
commitfcfa9ec19265847c32ac9a40f8fee979cccb6eb0 (patch)
tree36f3931c86f6b774d5608211f40d90b1a8245050 /Makefile.in
parentbfedef9dfe002f1ffcebbeeabf17feab015ddb81 (diff)
downloadruby-fcfa9ec19265847c32ac9a40f8fee979cccb6eb0.tar.gz
ruby-runner
* template/ruby-runner.c.in: wrapper to set dynamic loading path environment variable. /bin/sh on Mac OS X 10.11 (El Capitan) clears DYLD_LIBRARY_PATH. it must: - do nothing even if current directory is not present - do not set other environment variables, e.g. PWD, SHLVL, etc - do not open other FDs, e.g. pipes for timer thread git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 2becf39a4f..817976999a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -147,7 +147,7 @@ DTRACE_DEPENDENT_OBJS = array.$(OBJEXT) \
THREAD_MODEL = @THREAD_MODEL@
-PREP = @PREP@
+PREP = @PREP@ ruby-runner
ARCHFILE = @ARCHFILE@
SETUP =
EXTSTATIC = @EXTSTATIC@
@@ -252,6 +252,12 @@ ruby_pc = @ruby_pc@
$(ruby_pc):
@./config.status --file=$@:$(srcdir)/template/ruby.pc.in
+ruby-runner.c: template/ruby-runner.c.in
+ @./config.status --file=$@:$(srcdir)/template/$(@F).in
+
+ruby-runner$(EXEEXT): ruby-runner.c
+ $(Q) $(PURIFY) $(CC) $(LDFLAGS) $(LIBS) $(OUTFLAG)$@ ruby-runner.c
+
$(RBCONFIG): $($(CROSS_COMPILING:no=)PREP)
rbconfig.rb: $(RBCONFIG)