Skip to content

Commit

Permalink
- Fix crap_for_windoze to use RbConfig for RUBY_SO_NAME. (jasonrickman)
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/RubyInline/dev/": change = 6605]
  • Loading branch information
zenspider committed Aug 31, 2011
1 parent 1f204f0 commit 129bc3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/inline.rb
Expand Up @@ -628,7 +628,8 @@ def crap_for_windoze
when /mswin32/ then
" -link /LIBPATH:\"#{RbConfig::CONFIG['libdir']}\" /DEFAULTLIB:\"#{RbConfig::CONFIG['LIBRUBY']}\" /INCREMENTAL:no /EXPORT:Init_#{module_name}"
when /mingw32/ then
" -Wl,--enable-auto-import -L#{RbConfig::CONFIG['libdir']} -lmsvcrt-ruby18"
c = RbConfig::CONFIG
" -Wl,--enable-auto-import -L#{c['libdir']} -l#{c['RUBY_SO_NAME']}"
when /i386-cygwin/ then
' -L/usr/local/lib -lruby.dll'
else
Expand Down

0 comments on commit 129bc3a

Please sign in to comment.