e8e87febec
GCC 8.1 failed to build LLVM's libc++ when -Wshadow is set, so lower down WARNS flag to 3. This is similar to dtc(1) which uses libc++ and sets WARNS to 3. Approved by: re (gjb) Sponsored by: DARPA, AFRL
19 lines
295 B
Makefile
19 lines
295 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
.include <src.opts.mk>
|
|
PROG_CXX= pmc
|
|
MAN=
|
|
WARNS?= 3
|
|
CXXFLAGS+= -O0 -std=c++14
|
|
CWARNFLAGS.gcc+= -Wno-redundant-decls
|
|
|
|
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>
|