diff options
Diffstat (limited to 'sys/boot/i386/gptzfsboot/Makefile')
-rw-r--r-- | sys/boot/i386/gptzfsboot/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/boot/i386/gptzfsboot/Makefile b/sys/boot/i386/gptzfsboot/Makefile index 7f5f287..e73300dc 100644 --- a/sys/boot/i386/gptzfsboot/Makefile +++ b/sys/boot/i386/gptzfsboot/Makefile @@ -38,6 +38,13 @@ CFLAGS= -DBOOTPROG=\"gptzfsboot\" \ -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \ -Winline --param max-inline-insns-single=100 +.if ${CC:T:Mclang} == "clang" +# XXX: clang integrated-as doesn't grok .codeNN directives yet +CFLAGS+= ${.IMPSRC:T:Mgptldr.S:C/^.+$/-no-integrated-as/} +# XXX: clang integrated-as doesn't grok some 16-bit instructions yet +CFLAGS+= ${.IMPSRC:T:Msio.S:C/^.+$/-no-integrated-as/} +.endif + LDFLAGS=-static -N --gc-sections # Pick up ../Makefile.inc early. |