summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/libi386/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/i386/libi386/Makefile')
-rw-r--r--sys/boot/i386/libi386/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/i386/libi386/Makefile b/sys/boot/i386/libi386/Makefile
index 3b89784..7940471 100644
--- a/sys/boot/i386/libi386/Makefile
+++ b/sys/boot/i386/libi386/Makefile
@@ -53,6 +53,11 @@ CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
# the location of libstand
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
+.if ${CC:T:Mclang} == "clang"
+# XXX: clang integrated-as doesn't grok .codeNN directives yet
+CFLAGS+= ${.IMPSRC:T:Mamd64_tramp.S:C/^.+$/-no-integrated-as/}
+.endif
+
.if ${MACHINE_CPUARCH} == "amd64"
CLEANFILES+= machine
machine:
OpenPOWER on IntegriCloud