]> git.buserror.net Git - polintos/scott/priv.git/blobdiff - kernel/arch/x86/Makefile.final
Move some freestanding libc functions from the kernel into
[polintos/scott/priv.git] / kernel / arch / x86 / Makefile.final
index 2a4988d3a617f78c47c4d2177802fe85dc69dbb1..34e87b8da2b4b05e40e2da025c0119630df299bb 100644 (file)
@@ -1,10 +1,10 @@
 DIR := arch/x86/
 CXXFLAGS += -fno-omit-frame-pointer -march=i686
 
-$(BUILDDIR)/kernel: $(OBJS) $(DIR)linker-script
+$(BUILDDIR)/kernel: $(OBJS) $(LIBS) $(DIR)linker-script
        @echo $(COMP): Linking kernel: $@
        @$(MKDIR) $(dir $@)
-       @$(CXX) $(OBJS) -lgcc -lsupc++ -nostdlib -o "$@" -Wl,-T$(DIR)linker-script
+       @$(CXX) $(OBJS) $(LIBS) -lgcc -lsupc++ -nostdlib -o "$@" -Wl,-T$(DIR)linker-script
 
 # GRUB refuses to use the addresses in the multiboot header if it
 # finds a valid ELF header, so the dd hacks a zero into the high byte