diff --git a/src/kernel/core/util/Jamfile b/src/kernel/core/util/Jamfile index 0dbbec5709..3cd5a963e2 100644 --- a/src/kernel/core/util/Jamfile +++ b/src/kernel/core/util/Jamfile @@ -7,5 +7,5 @@ KernelMergeObject kernel_util.o : kernel_cpp.cpp KMessage.cpp - : -fno-pic -Wno-unused -D_KERNEL_MODE + : -fno-pic -Wno-unused -D_KERNEL_MODE -DUSING_LIBGCC ; diff --git a/src/kernel/core/util/kernel_cpp.cpp b/src/kernel/core/util/kernel_cpp.cpp index 6d42bac915..bcd4fe292f 100644 --- a/src/kernel/core/util/kernel_cpp.cpp +++ b/src/kernel/core/util/kernel_cpp.cpp @@ -15,7 +15,10 @@ // Always define the symbols needed when not linking against libgcc.a -- // we simply override them. +// ... it doesn't seem to work with this symbol at least. +#ifndef USING_LIBGCC const nothrow_t std::nothrow = {}; +#endif #if __GNUC__ == 2