From 415a606e17ad7a4e6d84f503c16d9907288fdedb Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Fri, 3 Apr 2020 16:10:42 +0000 Subject: [PATCH] pmc: diable position-independent builds, they fail to link on amd64 PR: 245189 Reported by: Gordon Bergling Sponsored by: DARPA --- usr.sbin/pmc/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.sbin/pmc/Makefile b/usr.sbin/pmc/Makefile index 175b8d583b1f..b67641de9f62 100644 --- a/usr.sbin/pmc/Makefile +++ b/usr.sbin/pmc/Makefile @@ -11,6 +11,9 @@ 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 \