mirror of
https://github.com/opnsense/src.git
synced 2026-02-17 09:39:26 -05:00
GNU as 2.17.50 is currently required by amd64 and i386 for at least one file that cannot be assembled by Clang's integrated assembler (IAS). Other supported CPU architectures either use Clang IAS for all assembly files, or rely on external toolchain. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23180
35 lines
887 B
Makefile
35 lines
887 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
SUBDIR= libiberty \
|
|
libbfd \
|
|
libopcodes
|
|
|
|
SUBDIR.${MK_BINUTILS}+= doc
|
|
SUBDIR.${MK_BINUTILS}+= libbinutils
|
|
SUBDIR.${MK_BINUTILS}+= objdump
|
|
|
|
# GNU as is used on x86 only, for a few files that cannot be assembled by
|
|
# Clang IAS. Other archs either use Clang IAS for every assembly file, or
|
|
# use external toolchain.
|
|
.if ${TARGET} == "amd64" || ${TARGET} == "i386"
|
|
SUBDIR.${MK_BINUTILS}+= as
|
|
.endif
|
|
|
|
# All archs except powerpc either use lld or require external toolchain.
|
|
# powerpc still needs binutils ld to link 32-bit binaries.
|
|
.if ${TARGET} == "powerpc"
|
|
SUBDIR.${MK_BINUTILS}+=ld
|
|
.endif
|
|
|
|
SUBDIR_DEPEND_libbinutils=libbfd # for bfdver.h
|
|
SUBDIR_DEPEND_as=libbfd libiberty libopcodes
|
|
SUBDIR_DEPEND_ld=libbfd libiberty
|
|
SUBDIR_DEPEND_objdump=libbfd libiberty libbinutils libopcodes
|
|
|
|
.if !make(install)
|
|
SUBDIR_PARALLEL=
|
|
.endif
|
|
|
|
.include <bsd.subdir.mk>
|