summaryrefslogtreecommitdiffstats
path: root/enc/make_encmake.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-20 08:07:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-20 08:07:56 +0000
commit5095941cca3fed7443af4405d926e15790eb1ece (patch)
treefcfaf15c7c5843954940f34a66abee4e68901b89 /enc/make_encmake.rb
parent7a8d52c7cd2d8a14e8933a501eda588f47d01653 (diff)
downloadruby-5095941cca3fed7443af4405d926e15790eb1ece.tar.gz
ruby-5095941cca3fed7443af4405d926e15790eb1ece.tar.xz
ruby-5095941cca3fed7443af4405d926e15790eb1ece.zip
* common.mk (enc.mk): depends on rbconfig.rb.
* regenc.h (OnigEncodingDefine): external encoding definition macro. * enc/Makefile.in: fix for linking. * enc/depend, enc/make_encmake.rb: fix for Windows. * enc/{ascii,euc_jp,sjis,utf8,iso_8859_{1..16}}.c: renamed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/make_encmake.rb')
-rw-r--r--enc/make_encmake.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/enc/make_encmake.rb b/enc/make_encmake.rb
index c20920168..799c4a085 100644
--- a/enc/make_encmake.rb
+++ b/enc/make_encmake.rb
@@ -14,11 +14,13 @@ else
BUILTIN_ENCS = []
end
+DEFFILE = (true if CONFIG["DLDFLAGS"].sub!(/\s+-def:\$\(DEFFILE\)\s+/, ' '))
+
mkin = File.read(File.join($srcdir, "Makefile.in"))
mkin.gsub!(/@(#{CONFIG.keys.join('|')})@/) {CONFIG[$1]}
if File.exist?(depend = File.join($srcdir, "depend"))
tmp = ''
- eval(serb(File.read(depend), 'tmp'))
+ eval(serb(File.read(depend), 'tmp'), binding, depend)
mkin << "\n#### depend ####\n\n" << depend_rules(tmp).join
end
open(ARGV[0], 'wb') {|f|