mpgtx-1.3.1-configure.patch 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --- configure.old 2006-12-07 19:51:08.000000000 +0100
  2. +++ configure 2006-12-07 19:51:02.000000000 +0100
  3. @@ -9,7 +9,6 @@
  4. prefix="/usr/local"
  5. manprefix='$(PREFIX)'
  6. #compiler flags
  7. -CC="g++"
  8. common_cflags="-Wall"
  9. devel_cflags="-g -Werror -fno-builtin"
  10. optimization_cflags="-O3"
  11. @@ -36,7 +35,6 @@
  12. if [ "${HOSTNAME}" = "powerpc-apple-darwin6.0" ]; then
  13. #compiler flags
  14. -CC="c++"
  15. common_cflags="-pedantic -Wall"
  16. #devel_cflags="-g -Werror -fno-builtin"
  17. devel_cflags="-g -fno-builtin"
  18. @@ -153,8 +151,15 @@
  19. if test "$gcc_minor" = "0" -o "$gcc_minor" = "1"; then
  20. optimization_cflags="-O2";
  21. fi
  22. + if test "$gcc_minor" -ge 4; then
  23. + optimization_cflags="$optimization_cflags -fno-unit-at-a-time"
  24. + fi
  25. +elif test "$gcc_major" -ge "4"; then
  26. + optimization_cflags="$optimization_cflags -fno-unit-at-a-time"
  27. fi
  28. +
  29. +
  30. # Now check if the system handles large file support
  31. # unless user has specified not to do so
  32. if test $LFS = "yes"; then
  33. @@ -165,7 +170,7 @@
  34. return (int)(fseeko(stdin,0,SEEK_SET));
  35. }
  36. EOF
  37. - $CC __LFStest.cpp -o __LFStestPASSED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 1>__LFSout 2>__LFSerror
  38. + ${CXX:-c++} __LFStest.cpp -o __LFStestPASSED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 1>__LFSout 2>__LFSerror
  39. if test -f __LFStestPASSED; then
  40. echo "PASSED";
  41. cflags="$cflags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE";
  42. @@ -211,7 +211,6 @@
  43. fi
  44. if test $devel = "no" -a $debug = "no"; then
  45. -lflags="$lflags -s";
  46. cflags="$cflags $optimization_cflags";
  47. fi
  48. @@ -293,15 +298,15 @@
  49. @echo ""
  50. mpgtx : commandline.cxx mpegOut.o mpeg.o chunkTab.o id3command.o common.hh
  51. - $CC \$(CFLAGS) \$(OFLAGS) -o mpgtx commandline.cxx mpegOut.o mpeg.o chunkTab.o id3command.o \$(LFLAGS)
  52. + \$(CXX) \$(CFLAGS) \$(OFLAGS) \$(LDFLAGS) -o mpgtx commandline.cxx mpegOut.o mpeg.o chunkTab.o id3command.o \$(LFLAGS)
  53. mpegOut.o : mpegOut.cxx mpegOut.hh mpeg.hh common.hh
  54. - $CC \$(CFLAGS) \$(OFLAGS) -c mpegOut.cxx
  55. + \$(CXX) \$(CFLAGS) \$(OFLAGS) -c mpegOut.cxx
  56. mpeg.o : mpeg.cxx mpeg.hh mpegOut.hh common.hh
  57. - $CC \$(CFLAGS) \$(OFLAGS) -c mpeg.cxx
  58. + \$(CXX) \$(CFLAGS) \$(OFLAGS) -c mpeg.cxx
  59. chunkTab.o : chunkTab.cxx chunkTab.hh common.hh
  60. - $CC \$(CFLAGS) \$(OFLAGS) -c chunkTab.cxx
  61. + \$(CXX) \$(CFLAGS) \$(OFLAGS) -c chunkTab.cxx
  62. id3command.o : id3command.cxx id3command.hh common.hh
  63. - $CC \$(CFLAGS) \$(OFLAGS) -c id3command.cxx
  64. + \$(CXX) \$(CFLAGS) \$(OFLAGS) -c id3command.cxx