mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-19 22:43:22 +01:00
d04fbf251a
bsd.prog.mk -- we need to compile PIC, which requires a library build. With this change, USDT (userspace DTrace probes) work from within shared libraries. PR: kern/159046 Submitted by: Alex Samorukov <samm at os2.kiev.ua> Comments by: Scott Lystig Fritchie <slfritchie at snookles.com> MFC after: 3 days
22 lines
588 B
Makefile
22 lines
588 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libdtrace/common
|
|
|
|
SRCS= drti.c
|
|
FILES= ${SRCS:R:S/$/.o/g}
|
|
FILESOWN= ${LIBOWN}
|
|
FILESGRP= ${LIBGRP}
|
|
FILESMODE= ${LIBMODE}
|
|
FILESDIR= ${LIBDIR}/dtrace
|
|
CLEANFILES= ${FILES}
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris \
|
|
-I${.CURDIR}/../../../cddl/compat/opensolaris/include \
|
|
-I${OPENSOLARIS_USR_DISTDIR}/head \
|
|
-I${OPENSOLARIS_USR_DISTDIR}/lib/libctf/common \
|
|
-I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \
|
|
-I${OPENSOLARIS_SYS_DISTDIR}/uts/common \
|
|
-DPIC ${PICFLAG}
|
|
|
|
.include <bsd.lib.mk>
|