[haiku-development] In-tree tests built on Haiku host linking to host libbe

  • From: Alex Wilson <yourpalal2@xxxxxxxxx>
  • To: haiku-development <haiku-development@xxxxxxxxxxxxx>
  • Date: Fri, 14 Oct 2011 16:27:31 -0600

Hi all, I've been working on and off as time permits on some
improvements to the layout code in my github branch
(github.com/yourpalal/haiku), and I ran into an annoying problem. I
have been using LayoutTest1 (in the tree) to test my changes as I go.
Unfortunately, it appears the executable has been getting linked to
the host libbe.so, which not only means I haven't actually tested any
of these changes (beyond making sure that they compile), but has lead
to some very frustrating errors. What tipped me off was that any
changes to the vtables of my classes leads to a segfault. Eventually I
found a way to print out the vtable entries for an object in gdb,
which were not reflecting any changes I made... investigating further,
I found/ran 'info sharedlibrary' which confirmed my fears.

So, what I need help with is a way to force LayoutTest1 to link to the
right libbe. I have looked around a bit but nothing has jumped out at
me as a solution. Hopefully someone on here can help!

Thanks,
Alex

Other related posts: