summaryrefslogtreecommitdiffstats
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-16 14:25:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-16 14:25:53 +0000
commit9a6cda0d8cef11ea97d6286208edefee1b5f779c (patch)
tree3f7220532a9ea5c18c9aafab3104af6d89277288 /common.mk
parentc42184c8bb49c397064bfa1260914fd9b90b9b22 (diff)
downloadruby-9a6cda0d8cef11ea97d6286208edefee1b5f779c.tar.gz
ruby-9a6cda0d8cef11ea97d6286208edefee1b5f779c.tar.xz
ruby-9a6cda0d8cef11ea97d6286208edefee1b5f779c.zip
* common.mk (static-ruby): overridable.
* ext/extmk.rb (parse_args): force to link extensions statically only if static is given for extstatic. * ext/extmk.rb (RUBY, RUBYW): overridable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index 113b64c97..77e8cdb99 100644
--- a/common.mk
+++ b/common.mk
@@ -4,6 +4,8 @@ dll: $(LIBRUBY_SO);
RUBYOPT =
+STATIC_RUBY = static-ruby
+
EXTCONF = extconf.rb
RBCONFIG = ./.rbconfig.time
@@ -68,9 +70,9 @@ $(LIBRUBY_A): $(OBJS) $(DMYEXT)
$(LIBRUBY_SO): $(OBJS) $(DLDOBJS) $(LIBRUBY_A) $(PREP) $(ARCHFILE)
-static-ruby: $(MAINOBJ) $(EXTOBJS) $(LIBRUBY_A)
+$(STATIC_RUBY)$(EXEEXT): $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A)
@$(RM) $@
- $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBY_A) $(LIBS) $(OUTFLAG)$@
+ $(PURIFY) $(CC) $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A) $(MAINLIBS) $(EXTLIBS) $(LIBS) $(OUTFLAG)$@ $(LDFLAGS) $(XLDFLAGS)
ruby.imp: $(LIBRUBY_A)
@$(NM) -Pgp $(LIBRUBY_A) | awk 'BEGIN{print "#!"}; $$2~/^[BD]$$/{print $$1}' | sort -u -o $@