pmc: Fix some problems with the makefile

- For some reason we don't build it as a PIE, but I don't have any
  problems doing so with either clang or gcc.
- There is no apparent need to override WARNS, so don't.
- Some building with -O0, presumably that's left over from debugging.

MFC after:	1 week
Reviewed by:	imp, brooks
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D43923
This commit is contained in:
Mark Johnston 2024-02-15 13:17:37 -05:00
parent e7e2431586
commit 23d4d0fcc1

View File

@ -1,18 +1,11 @@
#
#
.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= pmc m pmcstat elf
SRCS= pmc.c pmc_util.c cmd_pmc_stat.c \