From: Olle Johansson Date: Wed, 5 Apr 2006 20:14:51 +0000 (+0000) Subject: Issue #6610 - build on Intel Mac X-Git-Tag: 1.4.0-beta1~2136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2efcfc1549e580d69c39bb109c021a58ae70651b;p=thirdparty%2Fasterisk.git Issue #6610 - build on Intel Mac (Wish I could try this at home :-) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17735 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile b/Makefile index 9c058fae4c..948ab152be 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,7 @@ HOST_CC=gcc 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 @@ ifeq ($(OSARCH),Darwin) 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