summaryrefslogtreecommitdiff
path: root/enc/make_encmake.rb
diff options
context:
space:
mode:
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 c209201..799c4a0 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|