mirror of
https://github.com/opnsense/src.git
synced 2026-02-10 22:35:04 -05:00
As far as binutils is concerned, the amd64 platform is still called
"x86-64"/"x86_64". Setting things from ${MACHINE_ARCH} breaks that.
Approved by: re (scottl)
23 lines
559 B
Makefile
23 lines
559 B
Makefile
# $FreeBSD$
|
|
|
|
.include "../Makefile.inc0"
|
|
|
|
.PATH: ${SRCDIR}/binutils
|
|
|
|
LIB= binutils
|
|
SRCS+= arlex.l arparse.y arsup.c bucomm.c debug.c filemode.c \
|
|
ieee.c rdcoff.c rddbg.c rename.c stabs.c unwind-ia64.c \
|
|
wrstabs.c version.c binemul.c budemang.c emul_vanilla.c
|
|
WARNS= 0
|
|
.if ${TARGET_ARCH} == "amd64"
|
|
BINUTILS_ARCH=x86_64
|
|
.else
|
|
BINUTILS_ARCH=${TARGET_ARCH}
|
|
.endif
|
|
CFLAGS+= -DTARGET=\"${BINUTILS_ARCH}-unknown-freebsd\"
|
|
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
|
|
CFLAGS+= -I${SRCDIR}/binutils
|
|
CFLAGS+= -I${SRCDIR}/bfd
|
|
INTERNALLIB= true
|
|
|
|
.include <bsd.lib.mk>
|