Since the kernel links against libgcc.a and we use some C++ features that cause functions of libgcc.a to be included that use a couple of formerly undefined symbols (stderr, fprintf, abort, debugger) those had to be added to kernel_cpp.cpp. We don't build the kernel utils as static library anymore, since libgcc.a is listed at the end of the link command line and trying to change that would be a bit ugly. For C++ in the boot loader nothing changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9554 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -71,10 +71,15 @@ operator delete[](void *ptr) throw ()
|
||||
free(ptr);
|
||||
}
|
||||
|
||||
// we're using virtuals
|
||||
// only needed in the boot loader
|
||||
#ifndef _BOOT_MODE
|
||||
|
||||
extern "C" void __pure_virtual();
|
||||
|
||||
#endif // #if _BOOT_MODE
|
||||
|
||||
#endif // #if _KERNEL_MODE
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif /* KERNEL_CPP_H */
|
||||
|
||||
Reference in New Issue
Block a user