--- ltmain.sh.orig 2004-09-19 21:34:44.000000000 +0900 +++ ltmain.sh 2005-07-07 01:03:52.000000000 +0900 @@ -2370,7 +2370,7 @@ if test -n "$library_names" && { test "$prefer_static_libs" = no || test -z "$old_library"; }; then # We need to hardcode the library path - if test -n "$shlibpath_var"; then + if test -n "$shlibpath_var" && test "$installed" = no; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;;