Fix build failure if symlink already exists.
[ira/wip.git] / source / Makefile.in
index 7ca5123affe6dc29fd4a7a688f0c6544cbdf3371..e1f516f891050fdee4346e6f788ffe28cbe54868 100644 (file)
@@ -1396,7 +1396,7 @@ bin/libwbclient.@SHLIBEXT@: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ)
        @echo Linking shared library $@
        @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) \
                @SONAMEFLAG@`basename $@`.$(SONAME_VER)
-       @ln -s `basename $@` $@.$(SONAME_VER)
+       @ln -s -f `basename $@` $@.$(SONAME_VER)
 
 bin/libwbclient.a: $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ)
        @echo Linking non-shared library $@