Fix improper directory following when 'cpu' softlink already exists.
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 27 Mar 2009 22:24:46 +0000 (15:24 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 27 Mar 2009 22:24:46 +0000 (15:24 -0700)
Change ln -fs to ln -hfs for the 'cpu' directory link.  Without this
the ln command will create a cpu/cpu softlink instead of replacing the
cpu softlink.

This also fixes a build failure which will occur if the world
sources are mounted read-only.

lib/libstand/Makefile

index 94b5f77..0cfdf2e 100644 (file)
@@ -103,7 +103,7 @@ machine::
        ${LN} -fs ${.CURDIR}/../../sys/platform/pc32/include/* machine
 
 cpu::
-       ${LN} -fs ${.CURDIR}/../../sys/cpu/i386/include cpu
+       ${LN} -hfs ${.CURDIR}/../../sys/cpu/i386/include cpu
 
 CLEANDIRS+=    machine cpu
 .endif