patch-libltdl_config_ltmain_sh 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --- libtool-2.4.2.orig/libltdl/config/ltmain.sh 2011-10-17 12:19:35.000000000 +0200
  2. +++ libtool-2.4.2/libltdl/config/ltmain.sh 2014-08-15 15:01:04.000000000 +0200
  3. @@ -5176,7 +5176,7 @@ func_mode_link ()
  4. ;;
  5. -all-static | -static | -static-libtool-libs)
  6. case $arg in
  7. - -all-static)
  8. + -all-static|-static)
  9. if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  10. func_warning "complete static linking is impossible in this configuration"
  11. fi
  12. @@ -5185,12 +5185,6 @@ func_mode_link ()
  13. fi
  14. prefer_static_libs=yes
  15. ;;
  16. - -static)
  17. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  18. - dlopen_self=$dlopen_self_static
  19. - fi
  20. - prefer_static_libs=built
  21. - ;;
  22. -static-libtool-libs)
  23. if test -z "$pic_flag" && test -n "$link_static_flag"; then
  24. dlopen_self=$dlopen_self_static
  25. @@ -5473,7 +5467,7 @@ func_mode_link ()
  26. prevarg="$arg"
  27. case $arg in
  28. - -all-static)
  29. + -all-static|-static)
  30. if test -n "$link_static_flag"; then
  31. # See comment for -static flag below, for more details.
  32. func_append compile_command " $link_static_flag"
  33. @@ -5754,12 +5748,7 @@ func_mode_link ()
  34. continue
  35. ;;
  36. - -static | -static-libtool-libs)
  37. - # The effects of -static are defined in a previous loop.
  38. - # We used to do the same as -all-static on platforms that
  39. - # didn't have a PIC flag, but the assumption that the effects
  40. - # would be equivalent was wrong. It would break on at least
  41. - # Digital Unix and AIX.
  42. + -static-libtool-libs)
  43. continue
  44. ;;
  45. @@ -5853,7 +5842,7 @@ func_mode_link ()
  46. # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
  47. -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  48. -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
  49. - -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
  50. + -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*)
  51. func_quote_for_eval "$arg"
  52. arg="$func_quote_for_eval_result"
  53. func_append compile_command " $arg"