--- src/sys/boot/i386/boot2/Attic/Makefile 2004/08/06 20:50:35 1.11 +++ src/sys/boot/i386/boot2/Attic/Makefile 2004/09/12 18:37:15 1.12 @@ -64,8 +64,14 @@ CFLAGS= -elf -ffreestanding -Os -fno-bui # gcc-3.4's (default on) unit-at-a-time optimization. See the code # generated for 'xputc' as an example. # +# __USING_MRTD__ is used to conditionalize any assembly modules +# (aka sio_putc()) +# .if ${CCVER} == "gcc2" CFLAGS+= -mrtd +MRTDFLAGS=-D__USING_MRTD__ +.else +MRTDFLAGS= .endif # Unfortunately, unit-at-a-time creates other issues as well, as yet @@ -128,7 +134,7 @@ boot2.o: boot2.h sio.o: sio.S ${CC} -DSIOPRT=${BOOT_COMCONSOLE_PORT} -DSIOFMT=${B2SIOFMT} \ - -DSIOSPD=${BOOT_COMCONSOLE_SPEED} \ + -DSIOSPD=${BOOT_COMCONSOLE_SPEED} ${MRTDFLAGS} \ ${AFLAGS} ${.IMPSRC} -o ${.TARGET} -c install: