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:
@@ -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
|
||||
;
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user