[asterisk-commits] trunk r17735 - /trunk/Makefile

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Apr 5 13:14:53 MST 2006


Author: oej
Date: Wed Apr  5 15:14:51 2006
New Revision: 17735

URL: http://svn.digium.com/view/asterisk?rev=17735&view=rev
Log:
Issue #6610 - build on Intel Mac
(Wish I could try this at home :-)

Modified:
    trunk/Makefile

Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/Makefile?rev=17735&r1=17734&r2=17735&view=diff
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Wed Apr  5 15:14:51 2006
@@ -28,6 +28,7 @@
 ifeq ($(CROSS_COMPILE),)
   OSARCH=$(shell uname -s)
   OSREV=$(shell uname -r)
+  MARCH=$(shell uname -m)
 else
   OSARCH=$(CROSS_ARCH)
   OSREV=$(CROSS_REV)
@@ -397,8 +398,11 @@
   AUDIO_LIBS=-framework CoreAudio
   ASTLINK=-Wl,-dynamic
   SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace
-  OBJS+=poll.o
-  ASTCFLAGS+=-DPOLLCOMPAT
+  # Mac on Intel CoreDuo does not need poll compatibility layer
+  ifneq ($(MARCH),i386)
+    OBJS+=poll.o
+    ASTCFLAGS+=-DPOLLCOMPAT
+  endif
 else
 #These are used for all but Darwin
   ASTLINK=-Wl,-E 



More information about the asterisk-commits mailing list