summaryrefslogtreecommitdiff
path: root/ext/iconv/extconf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-13 14:33:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-13 14:33:30 +0000
commit61bd5fb4dcf56d9660d95c893703fcca698d42e9 (patch)
treef78867b9514c6175fd902d38f6e8a69f316154c3 /ext/iconv/extconf.rb
parent0ccc5dbe83218c981261240c4973d42919bf6d29 (diff)
* ext/iconv/charset_alias.rb (charset_alias): create wrapper libray
even if no target matched. * ext/iconv/extconf.rb: create wrapper library under RUBYARCHDIR directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/iconv/extconf.rb')
-rw-r--r--ext/iconv/extconf.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/iconv/extconf.rb b/ext/iconv/extconf.rb
index 71221d60a1..c6e5fa1244 100644
--- a/ext/iconv/extconf.rb
+++ b/ext/iconv/extconf.rb
@@ -27,8 +27,12 @@ if have_func("iconv", "iconv.h") or
if conf
prefix = '$(srcdir)'
prefix = $nmake ? "{#{prefix}}" : "#{prefix}/"
- wrapper = "./iconv.rb"
- $INSTALLFILES = [[wrapper, "$(RUBYARCHDIR)"]]
+ if $extout
+ wrapper = "$(RUBYARCHDIR)/iconv.rb"
+ else
+ wrapper = "./iconv.rb"
+ $INSTALLFILES = [[wrapper, "$(RUBYARCHDIR)"]]
+ end
if String === conf
require 'uri'
scheme = URI.parse(conf).scheme