Link the kernel against libsupc++.a -- we're using RTTI after all. Added

missing symbols to kernel_cpp.cpp.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14965 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2005-11-16 17:25:54 +00:00
parent 37d96a4c63
commit 6d865282d4
2 changed files with 21 additions and 0 deletions
+4
View File
@@ -88,6 +88,8 @@ KernelLd kernel_$(TARGET_ARCH) :
kernel_os_arch_$(TARGET_ARCH).o
kernel_posix.o
$(HAIKU_STATIC_LIBSUPC++)
: $(SUBDIR)/ldscripts/$(TARGET_ARCH)/kernel.ld
: -Bdynamic -export-dynamic -dynamic-linker /foo/bar
:
@@ -113,6 +115,8 @@ KernelLd kernel.so :
kernel_os_arch_$(TARGET_ARCH).o
kernel_posix.o
$(HAIKU_STATIC_LIBSUPC++)
: $(SUBDIR)/ldscripts/$(TARGET_ARCH)/kernel.ld
: -Bdynamic -shared -export-dynamic -dynamic-linker /foo/bar
;
+17
View File
@@ -80,6 +80,23 @@ fputc(int c, FILE *stream)
return 0;
}
extern "C"
int
printf(const char *format, ...)
{
// TODO: Introduce a vdprintf()...
dprintf("printf(`%s',...)\n", format);
return 0;
}
extern "C"
int
puts(const char *string)
{
return fputs(string, NULL);
}
#endif // __GNUC__ >= 3
extern "C"