Use ln -n instead of -h to allow building the kernel on Linux

Both flags do the same thing but -n is more widely supported.

Reviewed By:	jhb, emaste
Approved By:	jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D13936
This commit is contained in:
Alex Richardson 2018-01-16 21:43:57 +00:00
parent 5f40118235
commit 454ce38321
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328065
2 changed files with 2 additions and 2 deletions

View File

@ -300,7 +300,7 @@ ${_ILINKS}:
path=${S}/${.TARGET}/include ;; \
esac ; \
${ECHO} ${.TARGET} "->" $$path ; \
ln -fhs $$path ${.TARGET}
ln -fns $$path ${.TARGET}
# .depend needs include links so we remove them only together.
kernel-cleandepend: .PHONY

View File

@ -292,7 +292,7 @@ ${_ILINKS}:
esac ; \
path=`(cd $$path && /bin/pwd)` ; \
${ECHO} ${.TARGET:T} "->" $$path ; \
ln -fhs $$path ${.TARGET:T}
ln -fns $$path ${.TARGET:T}
CLEANFILES+= ${PROG} ${KMOD}.kld ${OBJS}