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

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 05 Mar 2011 18:46:31 +0100

On 2011-03-05 at 18:22:20 [+0100], Matt Madia <mattmadia@xxxxxxxxx> wrote:
> How does this affect running hybrids?
> 
> For instance, let's look at a gcc4 built Web+ and it's dependences
> (Curl LibXML2 SQLite OpenSSL), which are also built under gcc4.
> 
> When building a GCC 2 Hybrid, the build system will give preference to
> packages built for the host/main/primary gcc -- creating an image with
> (gcc4) Web+ and (gcc2) Curl LibXML2 SQLite OpenSSL.

At least theoretically both gccs should search the paths corresponding to 
the currently set gcc. I wouldn't rule out that something goes wrong, 
though. Have you tested it?

> So ... could this scenario lead to unexpected problems for the end user?

Obviously when linking against static libraries the code for the wrong gcc 
will be linked in, which alone is a reason, which where pure C code is 
concerned probably doesn't matter much. I don't know whether there are any 
consequences with respect to shared libraries. I'd rather avoid the 
situation.

CU, Ingo

Other related posts: