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/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/boot/i386/libi386/Makefile b/sys/boot/i386/libi386/Makefile
index de32c91..94a20c8 100644
--- a/sys/boot/i386/libi386/Makefile
+++ b/sys/boot/i386/libi386/Makefile
@@ -54,11 +54,6 @@ CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../common \
# 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:
@@ -67,6 +62,10 @@ machine:
.include <bsd.lib.mk>
+# XXX: clang integrated-as doesn't grok .codeNN directives yet
+CFLAGS.amd64_tramp.S= ${CLANG_NO_IAS}
+CFLAGS+= ${CFLAGS.${.IMPSRC:T}}
+
.if ${MACHINE_CPUARCH} == "amd64"
beforedepend ${OBJS}: machine
.endif
OpenPOWER on IntegriCloud