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