s4-waf: another place where broken ln -f on solaris8 matters
authorAndrew Tridgell <tridge@samba.org>
Fri, 26 Mar 2010 03:32:22 +0000 (14:32 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:07 +0000 (20:27 +1000)
source4/heimdal_build/wscript_build

index 33af11505efc7943774c211fe2e3cd6e4122664d..5240206e0dde600174292a4c03b6bfbe072339dc 100644 (file)
@@ -253,7 +253,7 @@ bld.SAMBA_SUBSYSTEM('HEIMDAL_GSSAPI',
 
 bld.SAMBA_GENERATOR(
     name="HEIMDAL_IFADDRS_H",
-    rule="ln -f ${SRC} ${TGT}",
+    rule="rm -f ${TGT} && ln ${SRC} ${TGT}",
     source = 'ifaddrs.hin',
     target = 'ifaddrs.h',
     enabled = not bld.CONFIG_SET('HAVE_IFADDRS_H')
@@ -262,7 +262,7 @@ bld.SAMBA_GENERATOR(
 bld.SAMBA_GENERATOR(
     group='build_compiler_source',
     name="HEIMDAL_ERR_H",
-    rule="ln -f ${SRC} ${TGT}",
+    rule="rm -f ${TGT} && ln ${SRC} ${TGT}",
     source = '../heimdal/lib/roken/err.hin',
     target = '../heimdal/lib/roken/err.h',
     enabled = not bld.CONFIG_SET('HAVE_ERR_H')