mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
5cf6f1c4bc
This option has been equivalent to any form of C++ support since libstdc++ was removed. Therefore, replace all MK_LIBCPLUSPLUS uses with MK_CXX. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D27974
51 lines
977 B
Makefile
51 lines
977 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
LIB= proc
|
|
|
|
SRCS= crc32.c \
|
|
proc_bkpt.c \
|
|
proc_create.c \
|
|
proc_regs.c \
|
|
proc_sym.c \
|
|
proc_rtld.c \
|
|
proc_util.c
|
|
|
|
INCS= libproc.h
|
|
|
|
CFLAGS+= -I${.CURDIR}
|
|
|
|
.if ${MK_CXX} == "no"
|
|
CFLAGS+= -DNO_CXA_DEMANGLE
|
|
.else
|
|
LIBADD+= cxxrt
|
|
.endif
|
|
|
|
LIBADD+= elf procstat rtld_db util
|
|
|
|
.if ${MK_CDDL} != "no"
|
|
LIBADD+= ctf
|
|
IGNORE_PRAGMA= YES
|
|
CFLAGS+= -DIN_BASE
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
|
|
CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
|
|
CFLAGS+= -DHAVE_ISSETUGID -DHAVE_BOOLEAN
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common \
|
|
-I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common \
|
|
-I${SRCTOP}/sys/cddl/compat/opensolaris
|
|
.else
|
|
CFLAGS+= -DNO_CTF
|
|
.endif
|
|
|
|
SHLIB_MAJOR= 5
|
|
|
|
MAN=
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.include <bsd.lib.mk>
|