patch-build_make_configure_sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- libvpx-v1.2.0.orig/build/make/configure.sh 2013-10-14 20:16:36.000000000 +0200
  2. +++ libvpx-v1.2.0/build/make/configure.sh 2014-01-06 11:27:27.889747488 +0100
  3. @@ -305,7 +305,7 @@ check_cpp() {
  4. check_ld() {
  5. log check_ld "$@"
  6. check_cc $@ \
  7. - && check_cmd ${LD} ${LDFLAGS} "$@" -o ${TMP_X} ${TMP_O} ${extralibs}
  8. + && check_cmd ${CC} ${LDFLAGS} "$@" -o ${TMP_X} ${TMP_O} ${extralibs}
  9. }
  10. check_header(){
  11. @@ -952,7 +952,7 @@ process_common_toolchain() {
  12. esac
  13. ;;
  14. - mips*)
  15. + mips32*)
  16. link_with_cc=gcc
  17. setup_gnu_toolchain
  18. tune_cflags="-mtune="
  19. @@ -964,6 +964,19 @@ process_common_toolchain() {
  20. check_add_asflags -march=${tgt_isa}
  21. check_add_asflags -KPIC
  22. ;;
  23. + mips64*)
  24. + link_with_cc=gcc
  25. + setup_gnu_toolchain
  26. + tune_cflags="-mtune="
  27. + if enabled dspr2; then
  28. + check_add_cflags -mips32r2 -mdspr2
  29. + disable fast_unaligned
  30. + fi
  31. + # use cflags from adk
  32. + #check_add_cflags -march=${tgt_isa}
  33. + #check_add_asflags -march=${tgt_isa}
  34. + check_add_asflags -KPIC
  35. + ;;
  36. ppc*)
  37. enable ppc
  38. bits=${tgt_isa##ppc}