diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-28 05:43:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-28 05:43:17 +0000 |
commit | 03e23204377759551ca88a5522f6ec56af91700b (patch) | |
tree | b2e0e3bfca4286d5c47d35163563c770e02352ee /ext | |
parent | c50a63c8923cbbb7ec147fab58bf47a84faafe4d (diff) | |
download | ruby-03e23204377759551ca88a5522f6ec56af91700b.tar.gz ruby-03e23204377759551ca88a5522f6ec56af91700b.tar.xz ruby-03e23204377759551ca88a5522f6ec56af91700b.zip |
* ext/extmk.rb (extract_makefile): use dldflags instead of DLDFLAGS to
get rid of mixing $LDFLAGS and $ARCH_FLAG.
* lib/mkmf.rb (configuration): ditto.
* lib/mkmf.rb (create_makefile): support for extensions which has no
shared object.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/extmk.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index a237efdea..898f8601c 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -79,7 +79,7 @@ def extract_makefile(makefile, keep = true) $static ||= m[/^EXTSTATIC[ \t]*=[ \t]*(\S+)/, 1] || false /^STATIC_LIB[ \t]*=[ \t]*\S+/ =~ m or $static = nil $preload = Shellwords.shellwords(m[/^preload[ \t]*=[ \t]*(.*)/, 1] || "") - $DLDFLAGS += " " + (m[/^DLDFLAGS[ \t]*=[ \t]*(.*)/, 1] || "") + $DLDFLAGS += " " + (m[/^dldflags[ \t]*=[ \t]*(.*)/, 1] || "") if s = m[/^LIBS[ \t]*=[ \t]*(.*)/, 1] s.sub!(/^#{Regexp.quote($LIBRUBYARG)} */, "") s.sub!(/ *#{Regexp.quote($LIBS)}$/, "") |