Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/lib/libdtrace - make the generated file ...
details: https://anonhg.NetBSD.org/src/rev/d50a02ed9b5e
branches: trunk
changeset: 810908:d50a02ed9b5e
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 29 23:50:17 2015 +0000
description:
- make the generated file rules depend on the source files
- hack for clang on Darwin
diffstat:
external/cddl/osnet/lib/libdtrace/Makefile | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r a3c5f5d543f9 -r d50a02ed9b5e external/cddl/osnet/lib/libdtrace/Makefile
--- a/external/cddl/osnet/lib/libdtrace/Makefile Tue Sep 29 22:14:14 2015 +0000
+++ b/external/cddl/osnet/lib/libdtrace/Makefile Tue Sep 29 23:50:17 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2015/09/24 14:36:54 christos Exp $
+# $NetBSD: Makefile,v 1.12 2015/09/29 23:50:17 christos Exp $
# $FreeBSD: src/cddl/lib/libdtrace/Makefile,v 1.2.2.1 2009/08/03 08:13:06 kensmith Exp $
@@ -107,11 +107,17 @@
CLEANFILES= dt_errtags.c dt_names.c dt_grammar.h
-dt_errtags.c:
- sh ${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common/mkerrtags.sh < ${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common/dt_errtags.h > dt_errtags.c
+.if ${_HOST_OSNAME} == "Darwin"
+COPTS.dt_print.c+= -fno-stack-protector
+.endif
-dt_names.c:
- sh ${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common/mknames.sh < ${OPENSOLARIS_SYS_DISTDIR}/uts/common/sys/dtrace.h > dt_names.c
+MKERRTAGS=${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common/mkerrtags.sh
+dt_errtags.c: ${MKERRTAGS} ${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common/dt_errtags.h
+ sh ${MKERRTAGS} < ${.ALLSRC:M*.h} > ${.TARGET}
+
+MKNAMES=${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common/mknames.sh
+dt_names.c: ${MKNAMES} ${OPENSOLARIS_SYS_DISTDIR}/uts/common/sys/dtrace.h
+ sh ${MKNAMES} < ${.ALLSRC:M*.h} > ${.TARGET}
beforedepend: dt_errtags.c dt_names.c
Home |
Main Index |
Thread Index |
Old Index