1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-03 12:35:02 +00:00

Set the binutils arch for as/nm correctly on the amd64 platform.

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)
This commit is contained in:
Peter Wemm 2003-05-08 06:39:31 +00:00
parent b2d14fd9bb
commit bd3aef3d0d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114834

View File

@ -9,7 +9,12 @@ 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
CFLAGS+= -DTARGET=\"${TARGET_ARCH}-unknown-freebsd\"
.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