mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-26 20:12:44 +00:00
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:
parent
e7e2431586
commit
23d4d0fcc1
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user