HardenedBSD/usr.sbin/pmc/Makefile
Brooks Davis 415a606e17 pmc: diable position-independent builds, they fail to link on amd64
PR:		245189
Reported by:	Gordon Bergling
Sponsored by:	DARPA
2020-04-03 16:10:42 +00:00

24 lines
394 B
Makefile

#
# $FreeBSD$
#
.include <src.opts.mk>
PROG_CXX= pmc
MAN=
WARNS?= 3
CXXFLAGS+= -O0
CXXSTD= c++14
CWARNFLAGS.gcc+= -Wno-redundant-decls
CFLAGS+= -I${SRCTOP}/lib/libpmcstat
# Does not link when built position-independent.
MK_PIE=no
LIBADD= kvm pmc m ncursesw pmcstat elf
SRCS= pmc.c pmc_util.c cmd_pmc_stat.c \
cmd_pmc_list.c cmd_pmc_filter.cc \
cmd_pmc_summary.cc
.include <bsd.prog.mk>