[svn-commits] pabelanger: branch 1.6.2 r263202 - in /branches/1.6.2: ./ codecs/gsm/Makefile

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat May 15 18:41:23 CDT 2010


Author: pabelanger
Date: Sat May 15 18:41:19 2010
New Revision: 263202

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=263202
Log:
Merged revisions 252488 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r252488 | tilghman | 2010-03-15 12:27:08 -0400 (Mon, 15 Mar 2010) | 9 lines
  
  Make the Makefile logic more explicit and move the Snow Leopard logic down to where it's not executed on non-Darwin systems.
  
  (closes issue #17028)
   Reported by: pabelanger
   Patches: 
         issue17028_20100315.patch uploaded by seanbright (license 71)
         20100315__issue17028.diff.txt uploaded by tilghman (license 14)
   Tested by: tilghman, pabelanger
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/codecs/gsm/Makefile

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/codecs/gsm/Makefile
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/codecs/gsm/Makefile?view=diff&rev=263202&r1=263201&r2=263202
==============================================================================
--- branches/1.6.2/codecs/gsm/Makefile (original)
+++ branches/1.6.2/codecs/gsm/Makefile Sat May 15 18:41:19 2010
@@ -37,17 +37,19 @@
 ######### ppro's, etc, as well as the AMD K6 and K7.  The compile will
 ######### probably require gcc. 
 
-ifeq (, $(findstring $(OSARCH) , Darwin SunOS ))
-ifeq (, $(findstring $(PROC) , x86_64 amd64 ultrasparc sparc64 arm armv5b armeb ppc powerpc ppc64 ia64 s390 bfin mipsel mips))
-ifeq (, $(findstring $(shell uname -m) , ppc ppc64 alpha armv4l s390 ))
-ifeq ($(shell /usr/bin/sw_vers -productVersion | cut -c1-4),10.6)
-# Wow... Snow Leopard is BROKEN!
-OPTIMIZE+=-mtune=native
+ifeq (,$(findstring $(OSARCH),Darwin SunOS))
+  ifeq (,$(strip $(findstring $(PROC) ,"x86_64 amd64 ultrasparc sparc64 arm armv5b armeb ppc powerpc ppc64 ia64 s390 bfin mipsel mips ")))
+    ifeq (,$(strip $(findstring $(shell uname -m) ,"ppc ppc64 alpha armv4l s390 ")))
+      OPTIMIZE+=-march=$(PROC)
+    endif
+  endif
 else
-OPTIMIZE+=-march=$(PROC)
-endif
-endif
-endif
+  ifneq (,$(findstring $(OSARCH),Darwin))
+    ifeq ($(shell /usr/bin/sw_vers -productVersion | cut -c1-4),10.6)
+      # Snow Leopard reports i386, even though it's really x86_64
+      OPTIMIZE+=-mtune=native
+    endif
+  endif
 endif
 
 #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.




More information about the svn-commits mailing list