[x264-devel] [PATCH] macosx: version the libraries
Sean McGovern
gseanmcg at gmail.com
Thu Jan 26 01:54:01 CET 2012
---
configure | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 5c58f5a..a47faa3 100755
--- a/configure
+++ b/configure
@@ -1042,6 +1042,7 @@ fi
if [ "$shared" = "yes" ]; then
API=$(grep '#define X264_BUILD' < ${SRCPATH}/x264.h | cut -f 3 -d ' ')
+ echo "API=$API" >> config.mak
if [ "$SYS" = "WINDOWS" -o "$SYS" = "CYGWIN" ]; then
echo "SONAME=libx264-$API.dll" >> config.mak
if [ $compiler = ICL ]; then
@@ -1058,7 +1059,7 @@ if [ "$shared" = "yes" ]; then
elif [ "$SYS" = "MACOSX" ]; then
echo "SOSUFFIX=dylib" >> config.mak
echo "SONAME=libx264.$API.dylib" >> config.mak
- echo "SOFLAGS=-shared -dynamiclib -Wl,-single_module -Wl,-read_only_relocs,suppress -install_name \$(DESTDIR)\$(libdir)/\$(SONAME) $SOFLAGS" >> config.mak
+ echo "SOFLAGS=-shared -dynamiclib -Wl,-single_module -Wl,-read_only_relocs,suppress -Wl,-compatibility_version,\$(API).0.0 -Wl,-current_version,\$(API).0.0 -install_name \$(DESTDIR)\$(libdir)/\$(SONAME) $SOFLAGS" >> config.mak
elif [ "$SYS" = "SunOS" ]; then
echo "SOSUFFIX=so" >> config.mak
echo "SONAME=libx264.so.$API" >> config.mak
--
1.7.7
More information about the x264-devel
mailing list