diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/extmk.rb.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index c8e55e0ed..59536c494 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 |