[rtmpdump] [PATCH 2/2] darwin dylibs should set internal dylib path include the installed path to the lib so apps that link to it will find and load librtmp correctly

Scott D. Davilla davilla at xbmc.org
Mon Jul 25 23:11:24 CEST 2011


---
  librtmp/Makefile |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/librtmp/Makefile b/librtmp/Makefile
index 13df1f8..39d1a05 100644
--- a/librtmp/Makefile
+++ b/librtmp/Makefile
@@ -53,7 +53,7 @@ SODIR=$(SODIR_$(SYS))

  SO_LDFLAGS_posix=-shared -Wl,-soname,$@
  SO_LDFLAGS_darwin=-dynamiclib -twolevel_namespace -undefined 
dynamic_lookup -fno-common \
-	-headerpad_max_install_names
+	-headerpad_max_install_names -install_name $(libdir)/$@
  SO_LDFLAGS_mingw=-shared -Wl,--out-implib,librtmp.dll.a
  SO_LDFLAGS=$(SO_LDFLAGS_$(SYS))

-- 
1.7.4.1



More information about the rtmpdump mailing list