-boot: machOconv $(OBJS)
- $(LD) -static -preload -segaddr __TEXT $(BOOT2ADDR) -segalign 20 \
- -o $(SYMROOT)/boot.sys $(OBJS) $(LIBS) -lcc_kext
+boot: machOconv $(OBJS) $(LIBDEP)
+ $(LD) -static -Wl,-preload -Wl,-segaddr,__TEXT,$(BOOT2ADDR) \
+ -nostdlib -arch i386 -Wl,-segalign,20 \
+ -o $(SYMROOT)/boot.sys $(filter %.o,$^) $(LIBS) -lcc_kext