This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cross compiling against foreign libraries


On 9/22/06, Mike Frysinger <vapier@gentoo.org> wrote:
On Friday 22 September 2006 18:31, Ken MacLeod wrote:
> I'm trying to compile our API demo clients against the API libraries
> using a couple of different vendor's toolchains.  One toolchain
> appears to work fine.  The next toolchain wasn't happy with the
> libraries in '$TARGETROOT/lib' but got further when the libs were
> linked into '$TARGETROOT/usr/lib'.  Now it's complaining that
> libc.so.6 has undefined references to _dl_ symbols like
> '_dl_relocate_object@GLIBC_PRIVATE'.

my guess is the libc's are mismatched between your custom paths and the
toolchain's

so you should only be testing your library in the paths, nothing else ...
that's the entire point of the ABI afterall

Yes, that's what I'm pretty sure I need to do, I'm just having trouble making certain it's happening. When I trace gcc I see that it's looking in the toolchain's paths and not my target's paths.

I'll be trying -B / GCC_EXEC_PREFIX next and see how far that goes.

-- Ken

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]