aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/linux
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-02-28 18:30:18 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-02-28 18:30:18 +0000
commit07b202a847e08b9cd976e40315cda902ced1c84a (patch)
tree3aa885ba7c336d9e6d260c5deb1228863b043b89 /sys/modules/linux
parent8cfa93e4be0331e422d590579cb676f9f253b389 (diff)
Notes
Diffstat (limited to 'sys/modules/linux')
-rw-r--r--sys/modules/linux/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
index 568ee2ae34e2..891d8a89f400 100644
--- a/sys/modules/linux/Makefile
+++ b/sys/modules/linux/Makefile
@@ -5,11 +5,6 @@ SFX= 32
CFLAGS+=-DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32
.endif
-.if ${CC:T:Mclang} == "clang"
-# XXX: clang integrated-as doesn't grok .codeNN directives yet
-CFLAGS+= ${.IMPSRC:T:Mlinux32_locore.s:C/^.+$/-no-integrated-as/}
-.endif
-
.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_CPUARCH}/linux${SFX}
KMOD= linux
@@ -69,3 +64,7 @@ CFLAGS+= -DKTR
.endif
.include <bsd.kmod.mk>
+
+# XXX: clang integrated-as doesn't grok .codeNN directives yet
+CFLAGS.linux32_locore.s= ${CLANG_NO_IAS}
+CFLAGS+= ${CFLAGS.${.IMPSRC:T}}