From 2c0af1c89755a8fe945b4e1746f37c1fa2a87439 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 5 Jan 2015 12:28:22 +0000 Subject: Clang's 3.5 integrated assembler now handles these files correctly (it has support for the .codeXX directives). However, it is desirable, for a time, to allow kernels to be built with clang 3.4. Historically, it has been advantageous to allow stable X-1 to build kernels the old way (so long as the impact of doing so is small), and this restores that ability. Also, centralize the addition of ${ASM_CFLAGS.${.IMPSRC}}, place it in kern.mk rather than kern.pre.mk so that all modules can benefit, and give the same treatment to CFLAGS in kern.mk as well. --- sys/conf/Makefile.pc98 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/conf/Makefile.pc98') diff --git a/sys/conf/Makefile.pc98 b/sys/conf/Makefile.pc98 index 28d0956..9d0f25b 100644 --- a/sys/conf/Makefile.pc98 +++ b/sys/conf/Makefile.pc98 @@ -30,6 +30,8 @@ S= ../../.. .endif .include "$S/conf/kern.pre.mk" +ASM_CFLAGS.mpboot.s= ${CLANG_NO_IAS34} + %BEFORE_DEPEND %OBJS -- cgit v1.1