Fix build failure if symlink already exists.
authorJeremy Allison <jra@samba.org>
Fri, 21 Dec 2007 20:18:35 +0000 (12:18 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 21 Dec 2007 20:18:35 +0000 (12:18 -0800)
Jeremy.

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 $@