Module: sip-router
Branch: master
Commit: 241112547835aef3f95f0bfeefcbaa6f22ddd3bc
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2411125…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)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(a)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)