[haiku-development] Re: Fwd: [Haiku] #7203: gcc4 seems to have an issue locating libraries

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 06 Mar 2011 11:40:59 +0100

Ryan Leavengood <leavengood@xxxxxxxxx> wrote:
> My understanding was that the runtime_loader would only load GCC4
> libraries for GCC4 apps. It definitely seems like an error to load
> GCC2 libraries for a GCC4 apps (or vice versa.) Of course it is really
> only an issue for C++ code, and maybe we could somehow mark C-only
> libraries to explicitly tell the runtime_loader they are safe to load
> regardless of the app's compiler. But in general the runtime_loader
> should error out if the compilers don't match between app and 
> library.

That actually depends on whether GCC2 and 4 use the same padding rules 
for structures and the like. Which is probably true, but it would be 
something to check beforehand.

Bye,
   Axel.


Other related posts: