diff --git a/sys/boot/i386/cdboot/Makefile b/sys/boot/i386/cdboot/Makefile index fe370bc2a9d4..f352d693b658 100644 --- a/sys/boot/i386/cdboot/Makefile +++ b/sys/boot/i386/cdboot/Makefile @@ -1,15 +1,19 @@ # $FreeBSD$ PROG= cdboot STRIP= BINMODE=${NOBINMODE} NO_MAN= SRCS= ${PROG}.S CFLAGS+=-I${.CURDIR}/../common ORG= 0x7c00 LDFLAGS=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary .include + +# XXX: clang integrated-as doesn't grok .codeNN directives yet +CFLAGS.cdboot.S= ${CLANG_NO_IAS} +CFLAGS+= ${CFLAGS.${.IMPSRC:T}}