[SR-Dev] git:master: makefile: fix new libs compilation on Mac OS X

Andrei Pelinescu-Onciul andrei at iptel.org
Fri May 22 13:52:49 CEST 2009


Module: sip-router
Branch: master
Commit: 241112547835aef3f95f0bfeefcbaa6f22ddd3bc
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=241112547835aef3f95f0bfeefcbaa6f22ddd3bc

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Fri May 22 13:51:34 2009 +0200

makefile: fix new libs compilation on Mac OS X

Some of the new libraries (e.g. srdb*) use symbols from ser and on
Mac OS X / Darwin some special linker options are needed for this
to work.

Reported-by: Nils Ohlmeier <nils at iptel.org>

---

 Makefile.defs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Makefile.defs b/Makefile.defs
index 1bead07..2c2f057 100644
--- a/Makefile.defs
+++ b/Makefile.defs
@@ -1614,7 +1614,9 @@ ifeq ($(OS), darwin)
 	# the modules uses symbols from ser => either 
 	# -flat_namespace -undefined_suppress or -bundle_loader ../../$(MAIN_NAME)
 	MOD_LDFLAGS:= -bundle -flat_namespace -undefined suppress
-	LIB_LDFLAGS:= -dynamiclib
+	# for libs using symbols from ser (e.g srdb2, kcore a.s.o) we
+	# need -flat_namespace -undefined suppress
+	LIB_LDFLAGS:= -dynamiclib -flat_namespace -undefined suppress
 	LIB_SUFFIX:=.dylib
 	# on darwin soname should include the full path
 	# (it kind of combines rpath & soname)




More information about the sr-dev mailing list