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 /ext/extmk.rb.in | |
parent | e0ed1214e42669ca294463c4fca8fb6a55c597c7 (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/trunk@1886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r-- | ext/extmk.rb.in | 3 |
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 |