# \[Bug #1305\] target\_os $B$,(B darwin $B7O$N\>l9g$KF0E\*%j%s%/IT2DG=$J\<B9T7A\<0$,@8@.$5$l$k\>l9g$,$"$k

**URL:** <https://www.ruby-forum.com/t/bug-1305-target-os-b-b-darwin-b7o-n-l9g-kf0e-j-s-it2dg-j-b9t7a-0-8-5-l-k-l9g-k/163398>\
**Category:** Development\
**Created:** [March 19, 2009, 10:28pm UTC](https://www.ruby-forum.com/t/bug-1305-target-os-b-b-darwin-b7o-n-l9g-kf0e-j-s-it2dg-j-b9t7a-0-8-5-l-k-l9g-k/163398 "2009-03-19T22:28:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenta\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/b5a626/32.png) [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Post date:** [March 19, 2009, 10:28pm UTC](https://www.ruby-forum.com/t/bug-1305-target-os-b-b-darwin-b7o-n-l9g-kf0e-j-s-it2dg-j-b9t7a-0-8-5-l-k-l9g-k/163398/1 "2009-03-19T22:28:14Z")

</div>

Bug #1305: target\_os e$B$,e(B darwin  
e$B7O$N\>l9g$KF0E\*%j%s%/IT2DG=$J\<B9T7A\<0$,@8@.$5$l$k\>l9g$,$"$ke(B  
[http://redmine.ruby-lang.org/issues/show/1305](http://redmine.ruby-lang.org/issues/show/1305)

e$B5/I\<\<Te(B: Kenta M.  
e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: High  
e$B%+%F%4%je(B: core, Target version: 1.9.2  
ruby -v: ruby 1.9.2dev (2009-03-20 trunk 23011) [i386-darwin9.6.0]

configure.in e$B$Ne(B --enable-shared e$B$r=hM}$9$kItJ,$G!"e(Btarget\_os  
e$B$,e(B darwin e$B7O$N\>l9g!"e(BLIBRUBY\_DLDFLAGS e$B$,e(B

```
    if test "$load_relative" = yes; then
        libprefix='@executable_path/..'
    else
        libprefix='$(libdir)'
    fi
    LIBRUBY_DLDFLAGS='-install_name 

```

‘${libprefix}’/lib/lib$(RUBY\_SO\_NAME).dylib’

e$B$3$N$h$&$K@\_Dj$5$l$k!#e(B  
e$B$=$N$?$a!“e(B$load\_relative e$B$,e(B no  
e$B$N\>l9g$K6&M-%i%$%V%i%j$N0LCV$,e(B  
$(libdir)/lib/lib$(RUBY\_SO\_NAME).dylib  
e$B$H$$$&IT@5$JCM$K$J$C$F$7$^$&!#e(B  
e$B$=$7$F!”:G=_E_$K@8@.$5$l$k\<B9T7A\<0$OF0E\*%j%s%/$r2r7h$G$-$J$$!#e(B

e$B$3$l$O!"e(B

```
    if test "$load_relative" = yes; then
        libprefix='@executable_path/../lib'
    else
        libprefix='$(libdir)'
    fi
    LIBRUBY_DLDFLAGS='-install_name 

```

‘${libprefix}’/lib$(RUBY\_SO\_NAME).dylib’

e$B$H$9$k$N$,@52r$G$"$k$H;W$o$l$k!#e(B
