Mac OS X requires running ranlib on static libraries after installation.
authorDiego Biurrun <diego@biurrun.de>
Tue, 15 Aug 2006 19:30:38 +0000 (19:30 +0000)
committerDiego Biurrun <diego@biurrun.de>
Tue, 15 Aug 2006 19:30:38 +0000 (19:30 +0000)
Originally committed as revision 6001 to svn://svn.ffmpeg.org/ffmpeg/trunk

common.mak
configure

index 40a655cdd4eed499cfdf9576f99a0ea28e14e317..0961c1740f665408423a1e89f455066d3b419fd5 100644 (file)
@@ -69,6 +69,7 @@ install-lib-shared: $(SLIBNAME)
 install-lib-static: $(LIB)
        install -d "$(libdir)"
        install -m 644 $(LIB) "$(libdir)"
+       $(LIB_INSTALL_EXTRA_CMD)
 
 install-headers:
        install -d "$(incdir)"
index 17a60664b430d3d0b8fde81d4d84180e2232551d..96cc9535b40f4655b988817bc9f9a22973b9a157 100755 (executable)
--- a/configure
+++ b/configure
@@ -580,6 +580,7 @@ SLIBSUF=".dylib"
 SLIBNAME_WITH_FULLVERSION='$(SLIBPREF)$(NAME).$(LIBVERSION)$(SLIBSUF)'
 SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME).$(LIBMAJOR)$(SLIBSUF)'
 FFSERVERLDFLAGS=-Wl,-bind_at_load
+LIB_INSTALL_EXTRA_CMD="\$(RANLIB) \"\$(libdir)/\$(LIB)\""
 ;;
 MINGW32*)
 # Note: the rest of the mingw32 config is done afterwards as mingw32
@@ -1762,6 +1763,7 @@ if test "$lshared" = "yes" ; then
   echo "SLIBNAME_WITH_MAJOR=${SLIBNAME_WITH_MAJOR}" >> config.mak
   echo "SLIB_EXTRA_CMD=${SLIB_EXTRA_CMD}" >> config.mak
 fi
+echo "LIB_INSTALL_EXTRA_CMD=${LIB_INSTALL_EXTRA_CMD}" >> config.mak
 echo "EXTRALIBS=$extralibs" >> config.mak
 
 # If you do not want to use encoders, disable them.