]> granicus.if.org Git - libx264/commitdiff
fix shared libs on MacOSX
authorGuillaume Poirier <gpoirier@mplayerhq.hu>
Mon, 31 Mar 2008 08:50:45 +0000 (10:50 +0200)
committerLoren Merritt <pengvado@akuvian.org>
Wed, 2 Apr 2008 09:08:22 +0000 (03:08 -0600)
based on a patch by İsmail Dönmez

configure

index 6eb68c81797ee96d6072298088f01621dade5c7e..19d76d481d67f43869b8e868903f296564fe5d95 100755 (executable)
--- a/configure
+++ b/configure
@@ -463,6 +463,9 @@ if [ "$shared" = "yes" ]; then
         echo "SONAME=libx264-$API.dll" >> config.mak
         echo 'IMPLIBNAME=libx264.dll.a' >> config.mak
         echo 'SOFLAGS=-Wl,--out-implib,$(IMPLIBNAME) -Wl,--enable-auto-image-base' >> config.mak
+    elif [ "$SYS" = "MACOSX" ]; then
+        echo "SONAME=libx264.$API.dylib" >> config.mak
+        echo 'SOFLAGS=-dynamiclib -Wl,-single_module -Wl,-read_only_relocs,suppress' >> config.mak        
     else
         echo "SONAME=libx264.so.$API" >> config.mak
         echo 'SOFLAGS=-Wl,-soname,$(SONAME)' >> config.mak