On Mon, Sep 08, 2008 at 04:40:52AM +0200, Joerg Sonnenberger wrote:
| Attached patch removes the need for LIBC_SCCSID and SYSLIBC_SCCS moking
| in src/lib/libc in a more general fashion.
|
| What remains is fixing machine/asm.h on a bunch of platforms to put RCS
| IDs from assembler sources in the right section.
|
| Comments?
Define a default for MKSTRIPIDENT in <bsd.own.mk>
| Index: bsd.lib.mk
| ===================================================================
| RCS file: /home/joerg/repo/netbsd/src/share/mk/bsd.lib.mk,v
| retrieving revision 1.285
| diff -u -p -r1.285 bsd.lib.mk
| --- bsd.lib.mk 13 Aug 2008 16:36:15 -0000 1.285
| +++ bsd.lib.mk 8 Sep 2008 02:20:27 -0000
| @@ -509,6 +509,9 @@ lib${LIB}.so.${SHLIB_FULLVERSION}: ${SOL
| ${HOST_LN} -sf lib${LIB}.so.${SHLIB_FULLVERSION} lib${LIB}.so.tmp
| mv -f lib${LIB}.so.tmp lib${LIB}.so
| .endif
| +.if defined(MKSTRIPIDENT) && ${MKSTRIPIDENT} != "no"
| + ${OBJCOPY} -R .ident ${.TARGET}
| +.endif
Just check ${MKSTRIPIDENT} != no, and rely upon the default
from <bsd.own.mk>
| Index: bsd.prog.mk
| ===================================================================
| RCS file: /home/joerg/repo/netbsd/src/share/mk/bsd.prog.mk,v
| retrieving revision 1.234
| diff -u -p -r1.234 bsd.prog.mk
| --- bsd.prog.mk 28 Aug 2008 07:17:06 -0000 1.234
| +++ bsd.prog.mk 8 Sep 2008 02:20:36 -0000
| @@ -308,6 +308,9 @@ ${_P}: .gdbinit ${LIBCRT0} ${OBJS.${_P}}
| .if defined(PAXCTL_FLAGS.${_P})
| ${PAXCTL} ${PAXCTL_FLAGS.${_P}} ${.TARGET}
| .endif
| +.if defined(MKSTRIPIDENT) && ${MKSTRIPIDENT} != "no"
Again, just check ${MKSTRIPIDENT} != no.
Luke.
Attachment:
pgpQoVQ7OTYa5.pgp
Description: PGP signature