Module Name:    src
Committed By:   christos
Date:           Thu May 21 18:44:19 UTC 2020

Modified Files:
        src/sys/conf: Makefile.kern.inc

Log Message:
Do the chmod last so that the kernels get consistent permissions for MKREPRO
Reported by wiz@.


To generate a diff of this commit:
cvs rdiff -u -r1.269 -r1.270 src/sys/conf/Makefile.kern.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.269 src/sys/conf/Makefile.kern.inc:1.270
--- src/sys/conf/Makefile.kern.inc:1.269	Sat Apr  4 15:50:54 2020
+++ src/sys/conf/Makefile.kern.inc	Thu May 21 14:44:19 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.kern.inc,v 1.269 2020/04/04 19:50:54 christos Exp $
+#	$NetBSD: Makefile.kern.inc,v 1.270 2020/05/21 18:44:19 christos Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -233,12 +233,12 @@ LINKFLAGS?=	${LINKFORMAT} ${LINKSCRIPT} 
 LINKFLAGS_DEBUG?=	-X
 
 SYSTEM_LD_TAIL?=@${TOOL_SED} '/const char sccs/!d;s/.*@(.)//;s/" "//;s/\\.*//' vers.c && \
-		${SIZE} $@ && chmod 755 $@ && \
-		${SYSTEM_CTFMERGE}
+		${SIZE} $@ && ${SYSTEM_CTFMERGE} && chmod 755 $@
 SYSTEM_LD_TAIL_DEBUG?=&& \
 		echo mv -f $@ [email protected] && mv -f $@ [email protected] && \
 		echo ${STRIP} ${STRIPFLAGS} -o $@ [email protected] && \
-		${STRIP} ${STRIPFLAGS} -o $@ [email protected]
+		${STRIP} ${STRIPFLAGS} -o $@ [email protected] && \
+		chmod 755 $@ [email protected]
 LINKFLAGS_NORMAL?=	-S
 STRIPFLAGS?=	-g
 

Reply via email to