[haiku-development] Crosscompiling help?

  • From: "Fredrik Holmqvist" <fredrik.holmqvist@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 9 Feb 2008 20:42:55 +0100

I'm having some problem getting the cross-compiler to do the linking
correctly. Probably it's something somewhere in the configuration but
I wanted to ask the experts.

These commands generate libnspr4.so:

rm -f libnspr4.so
i586-pc-haiku-g++ -nostart -o libnspr4.so ./prvrsion.o io/./prfdcach.o
io/./prmwait.o io/./prmapopt.o io/./priometh.o io/./pripv6.o
io/./prlayer.o io/./prlog.o io/./prmmap.o io/./prpolevt.o io/./prprf.o
io/./prscanf.o io/./prstdio.o threads/./prcmon.o threads/./prrwlock.o
threads/./prtpd.o linking/./prlink.o malloc/./prmem.o md/./prosdep.o
memory/./prshm.o memory/./prshma.o memory/./prseg.o misc/./pralarm.o
misc/./pratom.o misc/./prcountr.o misc/./prdtoa.o misc/./prenv.o
misc/./prerr.o misc/./prerror.o misc/./prerrortable.o misc/./prinit.o
misc/./prinrval.o misc/./pripc.o misc/./prlog2.o misc/./prlong.o
misc/./prnetdb.o misc/./prolock.o misc/./prrng.o misc/./prsystem.o
misc/./prthinfo.o misc/./prtpool.o misc/./prtrace.o misc/./prtime.o
malloc/./prmalloc.o io/./prdir.o io/./prfile.o io/./prio.o
io/./prsocket.o misc/./pripcsem.o md/beos/./beos.o
md/beos/./beos_errors.o md/beos/./bfile.o md/beos/./bmisc.o
md/beos/./bnet.o md/beos/./bproc.o md/beos/./brng.o md/beos/./bseg.o
md/beos/./btime.o md/beos/./bmmap.o bthreads/./btthread.o
bthreads/./btlocks.o bthreads/./btcvar.o bthreads/./btmon.o
bthreads/./btsem.o bthreads/./btmisc.o


What bothers me is that when I examine it's dependencies there seems
to be something wrong:


ldd libnspr4.so
        linux-gate.so.1 =>  (0xffffe000)
        libroot.so => not found

Any ideas what flags or what else I'm missing to get that command to
behave correctly? (Don't bother about the libroot line, only
linux-gate-so.1).

Sorry if the formatting is messed up.

-- 
Fredrik Holmqvist
Chaordic: things that thrive on the edge of chaos with just enough order to
give them pattern, but not so much to slow their adaptation and learning.

Other related posts:

  • » [haiku-development] Crosscompiling help?