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.

62 lines
2.4 KiB

  1. --- a/src/libFLAC/Makefile.in
  2. +++ b/src/libFLAC/Makefile.in
  3. @@ -66,6 +66,7 @@ NORMAL_UNINSTALL = :
  4. PRE_UNINSTALL = :
  5. POST_UNINSTALL = :
  6. host_triplet = @host@
  7. +@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_FALSE@@FLaC__USE_ALTIVEC_TRUE@am__append_1 = -maltivec -mabi=altivec
  8. ACLOCAL = @ACLOCAL@
  9. ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
  10. AMDEP_FALSE = @AMDEP_FALSE@
  11. @@ -234,13 +235,21 @@ target_alias = @target_alias@
  12. lib_LTLIBRARIES = libFLAC.la
  13. @DEBUG_TRUE@DEBUGCFLAGS = -DFLAC__OVERFLOW_DETECT
  14. +# Linux-gcc for PPC does not have -force_cpusubtype_ALL, it is Darwin-specific
  15. +#@@@ PPC optimizations temporarily disabled
  16. +@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_FALSE@CPUCFLAGS = \
  17. +@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_FALSE@ $(am__append_1) \
  18. +@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_FALSE@ -DFLAC__NO_ASM
  19. +
  20. +# FIXME: The following logic should be part of configure, not of Makefile.am
  21. +
  22. # The -force_cpusubtype_ALL is needed to insert a ppc64 instruction
  23. # into cpu.c with an asm().
  24. #@@@ PPC optimizations temporarily disabled
  25. -@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_TRUE@CPUCFLAGS = -faltivec -force_cpusubtype_ALL -DFLAC__NO_ASM
  26. -# Linux-gcc for PPC does not have -force_cpusubtype_ALL, it is Darwin-specific
  27. -#@@@ PPC optimizations temporarily disabled
  28. -@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_FALSE@CPUCFLAGS = -maltivec -mabi=altivec -DFLAC__NO_ASM
  29. +@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_TRUE@CPUCFLAGS = -faltivec \
  30. +@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_TRUE@ -force_cpusubtype_ALL \
  31. +@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_TRUE@ -DFLAC__NO_ASM \
  32. +@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_TRUE@ $(am__append_1)
  33. AM_CFLAGS = $(DEBUGCFLAGS) $(CPUCFLAGS) @OGG_CFLAGS@
  34. @FLaC__CPU_PPC_TRUE@@FLaC__NO_ASM_FALSE@ARCH_SUBDIRS = ppc
  35. --- a/src/libFLAC/Makefile.am
  36. +++ b/src/libFLAC/Makefile.am
  37. @@ -32,6 +32,9 @@ lib_LTLIBRARIES = libFLAC.la
  38. if DEBUG
  39. DEBUGCFLAGS = -DFLAC__OVERFLOW_DETECT
  40. endif
  41. +
  42. +# FIXME: The following logic should be part of configure, not of Makefile.am
  43. +
  44. if FLaC__CPU_PPC
  45. # The -force_cpusubtype_ALL is needed to insert a ppc64 instruction
  46. # into cpu.c with an asm().
  47. @@ -40,8 +43,12 @@ if FLaC__SYS_DARWIN
  48. CPUCFLAGS = -faltivec -force_cpusubtype_ALL -DFLAC__NO_ASM
  49. else
  50. # Linux-gcc for PPC does not have -force_cpusubtype_ALL, it is Darwin-specific
  51. +CPUCFLAGS =
  52. +if FLaC__USE_ALTIVEC
  53. +CPUCFLAGS += -maltivec -mabi=altivec
  54. +endif
  55. #@@@ PPC optimizations temporarily disabled
  56. -CPUCFLAGS = -maltivec -mabi=altivec -DFLAC__NO_ASM
  57. +CPUCFLAGS += -DFLAC__NO_ASM
  58. endif
  59. endif