summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-10-29 00:18:03 +0000
committerjhb <jhb@FreeBSD.org>2015-10-29 00:18:03 +0000
commita8f2fadc532c88e8b56dba654067af63dc146409 (patch)
tree9595f93be56f154afe531004c66dfbff48f2c6c7
parentd47ec59d9c8270d6b31987f1417f94762afc7cfc (diff)
downloadFreeBSD-src-a8f2fadc532c88e8b56dba654067af63dc146409.zip
FreeBSD-src-a8f2fadc532c88e8b56dba654067af63dc146409.tar.gz
MFC 278582:
MFi386: When building some of the boot loaders with clang, and DEBUG_FLAGS or CFLAGS having '-g' in it, clang outputs several assembly directives that are too new for our version of binutils. Therefore, assemble the resulting .s files with clang instead. A more general solution can be implemented when a GNU as-compatible driver for clang's integrated assembler appears.
-rw-r--r--sys/boot/pc98/boot2/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/boot/pc98/boot2/Makefile b/sys/boot/pc98/boot2/Makefile
index aa399a0..8d6b20b 100644
--- a/sys/boot/pc98/boot2/Makefile
+++ b/sys/boot/pc98/boot2/Makefile
@@ -93,6 +93,7 @@ boot2.out: ${BTXCRT} boot2.o sio.o
${LD} ${LD_FLAGS} -Ttext ${ORG2} -o ${.TARGET} ${.ALLSRC}
boot2.o: boot2.s
+ ${CC} ${ACFLAGS} -c boot2.s
SRCS= boot2.c boot2.h
OpenPOWER on IntegriCloud