patch-codecs_gsm_Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. disable uname -m checks
  2. --- asterisk-1.4.26.orig/codecs/gsm/Makefile 2008-11-19 22:34:47.000000000 +0100
  3. +++ asterisk-1.4.26/codecs/gsm/Makefile 2009-08-21 12:29:21.450418652 +0200
  4. @@ -37,13 +37,13 @@ WAV49 = -DWAV49
  5. ######### ppro's, etc, as well as the AMD K6 and K7. The compile will
  6. ######### probably require gcc.
  7. -ifeq (, $(findstring $(OSARCH) , Darwin SunOS ))
  8. -ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b armeb hppa2.0 ppc powerpc ppc64 ia64 s390 bfin mipsel mips))
  9. -ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l s390 ))
  10. -OPTIMIZE+=-march=$(PROC)
  11. -endif
  12. -endif
  13. -endif
  14. +#ifeq (, $(findstring $(OSARCH) , Darwin SunOS ))
  15. +#ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b armeb hppa2.0 ppc powerpc ppc64 ia64 s390 bfin mipsel mips))
  16. +#ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l s390 ))
  17. +#OPTIMIZE+=-march=$(PROC)
  18. +#endif
  19. +#endif
  20. +#endif
  21. #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
  22. #This works for even old (2.96) versions of gcc and provides a small boost either way.
  23. @@ -207,13 +207,13 @@ GSM_SOURCES = $(SRC)/add.c \
  24. # add k6-specific code only if not on a non-k6 hardware or proc.
  25. # XXX Keep a space after each findstring argument
  26. # XXX should merge with GSM_OBJECTS
  27. -ifeq ($(OSARCH),linux-gnu)
  28. -ifeq (,$(findstring $(shell uname -m) , x86_64 amd64 ppc ppc64 alpha armv4l sparc64 parisc s390 ))
  29. -ifeq (,$(findstring $(PROC) , arm armv5b armeb powerpc ia64 s390 bfin mipsel mips ))
  30. -GSM_SOURCES+= $(SRC)/k6opt.s
  31. -endif
  32. -endif
  33. -endif
  34. +#ifeq ($(OSARCH),linux-gnu)
  35. +#ifeq (,$(findstring $(shell uname -m) , x86_64 amd64 ppc ppc64 alpha armv4l sparc64 parisc s390 ))
  36. +#ifeq (,$(findstring $(PROC) , arm armv5b armeb powerpc ia64 s390 bfin mipsel mips ))
  37. +#GSM_SOURCES+= $(SRC)/k6opt.s
  38. +#endif
  39. +#endif
  40. +#endif
  41. TOAST_SOURCES = $(SRC)/toast.c \
  42. $(SRC)/toast_lin.c \
  43. @@ -259,13 +259,13 @@ GSM_OBJECTS = $(SRC)/add.o \
  44. $(SRC)/short_term.o \
  45. $(SRC)/table.o
  46. -ifeq ($(OSARCH),linux-gnu)
  47. -ifeq (,$(findstring $(shell uname -m) , x86_64 amd64 ppc ppc64 alpha armv4l sparc64 parisc ))
  48. -ifeq (,$(findstring $(PROC) , arm armv5b armeb powerpc ia64 bfin mipsel mips ))
  49. -GSM_OBJECTS+= $(SRC)/k6opt.o
  50. -endif
  51. -endif
  52. -endif
  53. +#ifeq ($(OSARCH),linux-gnu)
  54. +#ifeq (,$(findstring $(shell uname -m) , x86_64 amd64 ppc ppc64 alpha armv4l sparc64 parisc ))
  55. +#ifeq (,$(findstring $(PROC) , arm armv5b armeb powerpc ia64 bfin mipsel mips ))
  56. +#GSM_OBJECTS+= $(SRC)/k6opt.o
  57. +#endif
  58. +#endif
  59. +#endif
  60. TOAST_OBJECTS = $(SRC)/toast.o \
  61. $(SRC)/toast_lin.o \