You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
3.6 KiB

  1. *** /usr/local/share/libtool/ltmain.sh Wed Jul 14 14:46:28 1999
  2. --- ltmain.sh Wed Oct 6 20:45:47 1999
  3. ***************
  4. *** 1162,1168 ****
  5. *.o | *.obj | *.a | *.lib)
  6. # A standard object.
  7. ! objs="$objs $arg"
  8. ;;
  9. *.lo)
  10. --- 1162,1168 ----
  11. *.o | *.obj | *.a | *.lib)
  12. # A standard object.
  13. ! libobjs="$libobjs $arg"
  14. ;;
  15. *.lo)
  16. ***************
  17. *** 1796,1801 ****
  18. --- 1796,1889 ----
  19. esac
  20. fi
  21. + if test -n "$rpath$xrpath"; then
  22. + # If the user specified any rpath flags, then add them.
  23. + for libdir in $rpath $xrpath; do
  24. + # This is the magic to use -rpath.
  25. + case "$compile_rpath " in
  26. + *" $libdir "*) ;;
  27. + *) compile_rpath="$compile_rpath $libdir" ;;
  28. + esac
  29. + case "$finalize_rpath " in
  30. + *" $libdir "*) ;;
  31. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  32. + esac
  33. + done
  34. + fi
  35. +
  36. + # Now hardcode the library paths
  37. + rpath=
  38. + hardcode_libdirs=
  39. + for libdir in $compile_rpath; do
  40. + if test -n "$hardcode_libdir_flag_spec"; then
  41. + if test -n "$hardcode_libdir_separator"; then
  42. + if test -z "$hardcode_libdirs"; then
  43. + hardcode_libdirs="$libdir"
  44. + else
  45. + # Just accumulate the unique libdirs.
  46. + case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
  47. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  48. + ;;
  49. + *)
  50. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  51. + ;;
  52. + esac
  53. + fi
  54. + else
  55. + eval flag=\"$hardcode_libdir_flag_spec\"
  56. + rpath="$rpath $flag"
  57. + fi
  58. + elif test -n "$runpath_var"; then
  59. + case "$perm_rpath " in
  60. + *" $libdir "*) ;;
  61. + *) perm_rpath="$perm_rpath $libdir" ;;
  62. + esac
  63. + fi
  64. + done
  65. + # Substitute the hardcoded libdirs into the rpath.
  66. + if test -n "$hardcode_libdir_separator" &&
  67. + test -n "$hardcode_libdirs"; then
  68. + libdir="$hardcode_libdirs"
  69. + eval rpath=\" $hardcode_libdir_flag_spec\"
  70. + fi
  71. + compile_rpath="$rpath"
  72. +
  73. + rpath=
  74. + hardcode_libdirs=
  75. + for libdir in $finalize_rpath; do
  76. + if test -n "$hardcode_libdir_flag_spec"; then
  77. + if test -n "$hardcode_libdir_separator"; then
  78. + if test -z "$hardcode_libdirs"; then
  79. + hardcode_libdirs="$libdir"
  80. + else
  81. + # Just accumulate the unique libdirs.
  82. + case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
  83. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  84. + ;;
  85. + *)
  86. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  87. + ;;
  88. + esac
  89. + fi
  90. + else
  91. + eval flag=\"$hardcode_libdir_flag_spec\"
  92. + rpath="$rpath $flag"
  93. + fi
  94. + elif test -n "$runpath_var"; then
  95. + case "$finalize_perm_rpath " in
  96. + *" $libdir "*) ;;
  97. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  98. + esac
  99. + fi
  100. + done
  101. + # Substitute the hardcoded libdirs into the rpath.
  102. + if test -n "$hardcode_libdir_separator" &&
  103. + test -n "$hardcode_libdirs"; then
  104. + libdir="$hardcode_libdirs"
  105. + eval rpath=\" $hardcode_libdir_flag_spec\"
  106. + fi
  107. + finalize_rpath="$rpath"
  108. +
  109. # Create the output directory, or remove our outputs if we need to.
  110. if test -d $output_objdir; then
  111. $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
  112. ***************
  113. *** 1955,1960 ****
  114. --- 2043,2049 ----
  115. done
  116. done
  117. if test -n "$a_deplib" ; then
  118. + newdeplibs="$newdeplibs $a_deplib"
  119. droppeddeps=yes
  120. echo
  121. echo "*** Warning: This library needs some functionality provided by $a_deplib."