diff options
author | will <will@FreeBSD.org> | 2014-09-18 14:41:57 +0000 |
---|---|---|
committer | will <will@FreeBSD.org> | 2014-09-18 14:41:57 +0000 |
commit | 8fbdaa50eadab69ef1db450a95198973f693f629 (patch) | |
tree | c6bee08342bef09d8f3a5f01846ae706f5bd259e /lib | |
parent | 0917a065ca1381c4aa57563ea3ebf5092d237a14 (diff) | |
download | FreeBSD-src-8fbdaa50eadab69ef1db450a95198973f693f629.zip FreeBSD-src-8fbdaa50eadab69ef1db450a95198973f693f629.tar.gz |
Fix incremental builds involving non-root users with read-only source files.
Makefiles should not assume that source files can be overwritten. This is the
common case for Perforce source trees.
This is a followup commit to r211243 in the same vein.
MFC after: 1 month
Sponsored by: Spectra Logic
MFSpectraBSD: r1036319 on 2014/01/29, r1046711 on 2014/03/06
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 5a02e51..ad3cc74 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -151,11 +151,11 @@ KSRCS= bcmp.c ffs.c ffsl.c fls.c flsl.c mcount.c strcat.c strchr.c \ libkern: libkern.gen libkern.${LIBC_ARCH} libkern.gen: ${KQSRCS} ${KSRCS} - cp -p ${LIBC_SRCTOP}/quad/quad.h ${.ALLSRC} ${DESTDIR}/sys/libkern + cp -fp ${LIBC_SRCTOP}/quad/quad.h ${.ALLSRC} ${DESTDIR}/sys/libkern libkern.${LIBC_ARCH}:: ${KMSRCS} .if defined(KMSRCS) && !empty(KMSRCS) - cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern/${LIBC_ARCH} + cp -fp ${.ALLSRC} ${DESTDIR}/sys/libkern/${LIBC_ARCH} .endif .include <bsd.lib.mk> |