summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index 534fe36c69..0652ac2e0b 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -402,7 +402,7 @@ def create_makefile(target)
else
$LIBPATH.each {|d| $DLDFLAGS << " -L" << d}
if /netbsdelf/ =~ RUBY_PLATFORM
- $LIBPATH.each {|d| $DLDFLAGS << " -Wl,-R" + d}
+ $LIBPATH.each {|d| $DLDFLAGS << " -Wl,-R" + d unless d == $topdir}
end
end