ln is not available on all platforms, so introduce a variable for it
[libav.git] / common.mak
index bdb707e..a394073 100644 (file)
@@ -27,7 +27,7 @@ $(LIB): $(STATIC_OBJS)
        $(RANLIB) $@
 
 $(SLIBNAME): $(SLIBNAME_WITH_MAJOR)
-       ln -sf $^ $@
+       $(LN_S) $^ $@
 
 $(SLIBNAME_WITH_MAJOR): $(SHARED_OBJS)
        $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $^ $(EXTRALIBS) $(EXTRAOBJS)
@@ -74,9 +74,9 @@ install-lib-shared: $(SLIBNAME)
        install -m 755 $(SLIBNAME) "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
        $(STRIP) "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
        cd "$(SHLIBDIR)" && \
-               ln -sf $(SLIBNAME_WITH_VERSION) $(SLIBNAME_WITH_MAJOR)
+               $(LN_S) $(SLIBNAME_WITH_VERSION) $(SLIBNAME_WITH_MAJOR)
        cd "$(SHLIBDIR)" && \
-               ln -sf $(SLIBNAME_WITH_VERSION) $(SLIBNAME)
+               $(LN_S) $(SLIBNAME_WITH_VERSION) $(SLIBNAME)
        $(SLIB_INSTALL_EXTRA_CMD)
 
 install-lib-static: $(LIB)