Reorder build objects to work around gcc bug with -combine.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 1 Oct 2011 14:43:48 +0000 (10:43 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 1 Oct 2011 14:54:54 +0000 (10:54 -0400)
Some versions of gcc have difficulties with externally visible
variables that are used before they are declared.  Now that pmm.c
contains only 32bit code and has a reference to CanPreempt, make sure
the declaration of CanPreempt (in stacks.c) is compiled first.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Makefile

index 109091bf5ebd295fff5c349d1265151c101d94b8..12adc4d4fb96a3b745dc77d96b15941903b20b0b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ VERSION=pre-0.6.3-$(shell date +"%Y%m%d_%H%M%S")-$(shell hostname)
 OUT=out/
 
 # Source files
-SRCBOTH=misc.c pmm.c stacks.c output.c util.c block.c floppy.c ata.c mouse.c \
+SRCBOTH=misc.c stacks.c pmm.c output.c util.c block.c floppy.c ata.c mouse.c \
         kbd.c pci.c serial.c clock.c pic.c cdrom.c ps2port.c smp.c resume.c \
         pnpbios.c pirtable.c vgahooks.c ramdisk.c pcibios.c blockcmd.c \
         usb.c usb-uhci.c usb-ohci.c usb-ehci.c usb-hid.c usb-msc.c \