From 34a5a9d6151587617fcdcbe45ef9f1f0e6dd8fda Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Wed, 23 Apr 2008 05:28:31 +0000 Subject: [PATCH] - some iphone linking fixes... git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@901 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- Makefile.defs | 7 +++++-- core/Makefile | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile.defs b/Makefile.defs index a1cd7098..2a269595 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -113,8 +113,11 @@ ifeq ($(OS), darwin) CPPFLAGS += -DBSD44SOCKETS # add the DarwinPorts directory - CPPFLAGS += -I /opt/local/include - LDFLAGS += -L/opt/local/lib + ifneq ($(ARCH), iphone) + CPPFLAGS += -D__DARWIN_UNIX03 + CPPFLAGS += -I /opt/local/include + LDFLAGS += -L/opt/local/lib + endif override exclude_modules += binrpcctrl mp3 examples py_sems else diff --git a/core/Makefile b/core/Makefile index a58f1359..0ad2363c 100644 --- a/core/Makefile +++ b/core/Makefile @@ -43,6 +43,10 @@ include ../Makefile.defs LDFLAGS += -lstdc++ +ifeq ($(ARCH),iphone) +LDFLAGS += -lgcc_eh +endif + ifdef USE_SPANDSP ifdef LIBSPANDSP_STATIC LDFLAGS += $(LIBSPANDSP_LDIR)libspandsp.a