aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/gprof/Makefile
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2019-08-21 10:54:52 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2019-08-21 10:54:52 +0000
commit6d7adebad52252d8c7672fb0ddc0d3f3ad1215bb (patch)
treeaec6eabd9e6e9cc05f13ecb075a0742007457078 /usr.bin/gprof/Makefile
parente13ad86c678a77f16e2a9fee25acf2d67d7175e9 (diff)
downloadsrc-6d7adebad52252d8c7672fb0ddc0d3f3ad1215bb.tar.gz
src-6d7adebad52252d8c7672fb0ddc0d3f3ad1215bb.zip
gprof: disable building of a.out components
On arm64, riscv, and s390x disable building of aout components. This allows gprof to build on these architectures which never supported the legacy a.out binary format. Obtained from: s390x branch MFC after: 3 months
Notes
Notes: svn path=/head/; revision=351329
Diffstat (limited to 'usr.bin/gprof/Makefile')
-rw-r--r--usr.bin/gprof/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/gprof/Makefile b/usr.bin/gprof/Makefile
index 506232597a42..28d0ffeef25c 100644
--- a/usr.bin/gprof/Makefile
+++ b/usr.bin/gprof/Makefile
@@ -2,8 +2,14 @@
# $FreeBSD$
PROG= gprof
-SRCS= gprof.c aout.c arcs.c dfn.c elf.c lookup.c hertz.c \
+SRCS= gprof.c arcs.c dfn.c elf.c lookup.c hertz.c \
printgprof.c printlist.c kernel.c
+
+.if ${MACHINE_ARCH} != "aarch64" && ${MACHINE_ARCH} != "riscv" && \
+ ${MACHINE_ARCH} != "s390x"
+SRCS+= aout.c
+CFLAGS+= -DWITH_AOUT
+.endif
FILES= gprof.flat gprof.callg
FILESDIR= ${SHAREDIR}/misc