summaryrefslogtreecommitdiff
path: root/ext/extmk.rb.in
diff options
context:
space:
mode:
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r--ext/extmk.rb.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index be1c20fd53..534fe36c69 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -401,6 +401,9 @@ def create_makefile(target)
libpath = $LIBPATH.join(';')
else
$LIBPATH.each {|d| $DLDFLAGS << " -L" << d}
+ if /netbsdelf/ =~ RUBY_PLATFORM
+ $LIBPATH.each {|d| $DLDFLAGS << " -Wl,-R" + d}
+ end
end
$srcdir = $top_srcdir + "/ext/" + $mdir