]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Remove MinGW specialcasing and make shared library installation compatible
authordiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 4 Aug 2006 10:23:06 +0000 (10:23 +0000)
committerdiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 4 Aug 2006 10:23:06 +0000 (10:23 +0000)
with MinGW where ln is emulated by cp.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5930 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

common.mak

index 8069d21f9d691d604a8f6dfe39635d038f03d8e8..40a655cdd4eed499cfdf9576f99a0ea28e14e317 100644 (file)
@@ -59,16 +59,12 @@ install-libs: $(INSTLIBTARGETS)
 
 install-lib-shared: $(SLIBNAME)
        install -d "$(shlibdir)"
-ifeq ($(CONFIG_MINGW),yes)
-       install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
-else
        install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
                "$(shlibdir)/$(SLIBNAME_WITH_VERSION)"
-       ln -sf $(SLIBNAME_WITH_VERSION) \
-              "$(shlibdir)/$(SLIBNAME_WITH_MAJOR)"
-       ln -sf $(SLIBNAME_WITH_VERSION) \
-              "$(shlibdir)/$(SLIBNAME)"
-endif
+       cd "$(shlibdir)" && \
+               ln -sf $(SLIBNAME_WITH_VERSION) $(SLIBNAME_WITH_MAJOR)
+       cd "$(shlibdir)" && \
+               ln -sf $(SLIBNAME_WITH_VERSION) $(SLIBNAME)
 
 install-lib-static: $(LIB)
        install -d "$(libdir)"
@@ -83,13 +79,9 @@ install-headers:
 uninstall: uninstall-libs uninstall-headers
 
 uninstall-libs:
-ifeq ($(CONFIG_MINGW),yes)
-       -rm -f "$(prefix)/$(SLIBNAME)"
-else
        -rm -f "$(shlibdir)/$(SLIBNAME_WITH_MAJOR)" \
               "$(shlibdir)/$(SLIBNAME)"            \
               "$(shlibdir)/$(SLIBNAME_WITH_VERSION)"
-endif
        -rm -f "$(libdir)/$(LIB)"
 
 uninstall-headers: