patch-ltmain_sh 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --- libfm-2.0.orig/ltmain.sh 2011-04-14 20:39:58.000000000 +0200
  2. +++ libfm-2.0/ltmain.sh 2011-04-16 11:26:42.000000000 +0200
  3. @@ -4216,19 +4216,6 @@ func_mode_link ()
  4. prev=
  5. continue
  6. ;;
  7. - framework)
  8. - case $host in
  9. - *-*-darwin*)
  10. - case "$deplibs " in
  11. - *" $qarg.ltframework "*) ;;
  12. - *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  13. - ;;
  14. - esac
  15. - ;;
  16. - esac
  17. - prev=
  18. - continue
  19. - ;;
  20. inst_prefix)
  21. inst_prefix_dir="$arg"
  22. prev=
  23. @@ -4452,11 +4439,6 @@ func_mode_link ()
  24. continue
  25. ;;
  26. - -framework)
  27. - prev=framework
  28. - continue
  29. - ;;
  30. -
  31. -inst-prefix-dir)
  32. prev=inst_prefix
  33. continue
  34. @@ -5155,21 +5137,6 @@ func_mode_link ()
  35. fi
  36. fi
  37. ;; # -l
  38. - *.ltframework)
  39. - if test "$linkmode,$pass" = "prog,link"; then
  40. - compile_deplibs="$deplib $compile_deplibs"
  41. - finalize_deplibs="$deplib $finalize_deplibs"
  42. - else
  43. - deplibs="$deplib $deplibs"
  44. - if test "$linkmode" = lib ; then
  45. - case "$new_inherited_linker_flags " in
  46. - *" $deplib "*) ;;
  47. - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  48. - esac
  49. - fi
  50. - fi
  51. - continue
  52. - ;;
  53. -L*)
  54. case $linkmode in
  55. lib)
  56. @@ -5319,24 +5286,6 @@ func_mode_link ()
  57. # Read the .la file
  58. func_source "$lib"
  59. - # Convert "-framework foo" to "foo.ltframework"
  60. - if test -n "$inherited_linker_flags"; then
  61. - tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  62. - for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  63. - case " $new_inherited_linker_flags " in
  64. - *" $tmp_inherited_linker_flag "*) ;;
  65. - *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  66. - esac
  67. - done
  68. - fi
  69. - dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  70. - if test "$linkmode,$pass" = "lib,link" ||
  71. - test "$linkmode,$pass" = "prog,scan" ||
  72. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  73. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  74. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  75. - fi
  76. -
  77. if test "$pass" = conv; then
  78. # Only check for convenience libraries
  79. deplibs="$lib $deplibs"