diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/extmk.rb.in | 3 | ||||
-rw-r--r-- | lib/mkmf.rb | 3 |
3 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Thu Dec 6 18:52:28 2001 Usaku Nakamura <usa@ruby-lang.org> + + * ext/extmk.rb.in: add -Wl,-R flags to DLDFLAGS on netbsdelf. + + * lib/mkmf.rb: ditto. + Mon Dec 3 16:06:57 2001 WATANABE Hirofumi <eban@ruby-lang.org> * ext/socket/extconf.rb: remove -L/usr/local/lib. diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index be1c20fd5..534fe36c6 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 diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 2fe9d0809..47d468d2f 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/ |