summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-05-08 06:39:31 +0000
committerpeter <peter@FreeBSD.org>2003-05-08 06:39:31 +0000
commit61de490e30f478b0adca810a7abf53a2e186caad (patch)
tree15bfc1b206d3484c4a93f171ed2d46c6a0b3bffa /gnu
parent10cba42d0934b455107e46e069b9356fb479e0c2 (diff)
downloadFreeBSD-src-61de490e30f478b0adca810a7abf53a2e186caad.zip
FreeBSD-src-61de490e30f478b0adca810a7abf53a2e186caad.tar.gz
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)
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/libbinutils/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/libbinutils/Makefile b/gnu/usr.bin/binutils/libbinutils/Makefile
index 07e77b8..ac6a5b9 100644
--- a/gnu/usr.bin/binutils/libbinutils/Makefile
+++ b/gnu/usr.bin/binutils/libbinutils/Makefile
@@ -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
OpenPOWER on IntegriCloud