summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-29 02:52:41 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-29 02:52:41 +0000
commit4e560cffd6266c08cb856d1b2c25f796522bcc9e (patch)
tree9737f5abbaf206fb2b24a83e9823a08c33b1eff7 /ext
parentbba6ae31371449a685f23bdd93f0f9a931e5eccd (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index c8e55e0..59536c4 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -337,7 +337,12 @@ end
def create_makefile(target)
$target = target
-
+ if target.rindex(%r!/!)
+ target = $'
+ target_prefix = "/"+$`
+ else
+ target_prefix = ""
+ end
rm_f "conftest*"
if "@DLEXT@" == $OBJEXT
libs = $libs.split