summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-06 09:55:31 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-06 09:55:31 +0000
commit649dc6eaaba5c68e3ddda7f9d37b2a9006cb2093 (patch)
treed83a9389ec3fc09158ae1f775e7325200e028112 /ext
parentdc6de95cf2f61f3c2dd11b85d67894dbb208b2ec (diff)
* ext/extmk.rb.in: add -Wl,-R flags to DLDFLAGS on netbsdelf.
* lib/mkmf.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-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 44a5e901bc..d63cf0f904 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -397,6 +397,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