Skip to content

Instantly share code, notes, and snippets.

@leedm777
Last active December 16, 2015 17:09
Show Gist options
  • Save leedm777/5468621 to your computer and use it in GitHub Desktop.
Save leedm777/5468621 to your computer and use it in GitHub Desktop.
This is an attempt to fix some linking problems compiling Digium's fork of PJSIP on OS X.
diff --git a/build/rules.mak b/build/rules.mak
index dc74f52..d5006c7 100644
--- a/build/rules.mak
+++ b/build/rules.mak
@@ -14,6 +14,8 @@ SONAME = $($(APP)_SONAME)
ifeq ($(SHLIB_SUFFIX),so)
SHLIB_OPT := -shared -Wl,-soname,$(SONAME)
+else ifeq ($(SHLIB_SUFFIX),dylib)
+SHLIB_OPT := -dynamiclib -undefined dynamic_lookup -flat_namespace
else
SHLIB_OPT :=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment