diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-06 09:55:31 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-06 09:55:31 +0000 |
commit | 22d2d65d6f3133999673e0f52aeb234e07bdf41d (patch) | |
tree | cb8e662bff3b424a4f8be8529773d4bbdb88dff7 /lib | |
parent | e0ed1214e42669ca294463c4fca8fb6a55c597c7 (diff) | |
download | ruby-22d2d65d6f3133999673e0f52aeb234e07bdf41d.tar.gz |
* 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/trunk@1886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 2fe9d08091..47d468d2f1 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -403,6 +403,9 @@ def create_makefile(target, srcdir = File.dirname($0)) libpath = $LIBPATH.join(';') else $LIBPATH.each {|d| $DLDFLAGS << " -L" << d} + if /netbsdelf/ =~ RUBY_PLATFORM + $LIBPATH.each {|d| $DLDFLAGS << " -Wl,-R" + d} + end end drive = File::PATH_SEPARATOR == ';' ? /\A\w:/ : /\A/ |