Use libstdc++.so in place of libsupc++.so.

* The latter doesn't link against libroot.so, which lets the library init fail.
* Fix kernel_debugger crash in malloc().
* libsupc++.so will be deleted from gcc_syslibs package (the static libs will
stay however).
This commit is contained in:
Jérôme Duval
2016-04-25 19:09:03 +02:00
parent 60ac5356ac
commit 0cb870a56c
+3 -2
View File
@@ -57,13 +57,14 @@ rule TargetLibsupc++ asPath
# there is no libsupc++.so for the legacy compiler
return ;
}
# return libsupc++.so from the gcc_syslibs build feature.
# return libstdc++.so (which includes libsupc++) from the gcc_syslibs
# build feature.
local flags ;
if $(asPath) = true {
flags += path ;
}
return [
BuildFeatureAttribute gcc_syslibs : libsupc++.so : $(flags)
BuildFeatureAttribute gcc_syslibs : libstdc++.so : $(flags)
] ;
} else {
# TODO: return libsupc++.so for non-Haiku target platform if needed