On 06/09/12 16:19, Jack Mitchell wrote:
On 06/09/12 16:16, Phil Blundell wrote:
On Thu, 2012-09-06 at 16:15 +0100, Jack Mitchell wrote:
On 06/09/12 16:09, Phil Blundell wrote:
On Thu, 2012-09-06 at 16:08 +0100, Jack Mitchell wrote:
So, would the best way to fix it be something like:

do_compile() {
       run_oemake LD="${CCLD}"
}
Yes, probably.  Or I guess you can just do:

LD = "${CCLD}"

somewhere else in your .bb file.
Oh, right.  It's a C++ program so what you actually need is LD="${CXX}".

p.



_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Perfect, I had CC=${CXX} so I was almost there!! : P

Thanks for the help!


I take this back, It built correctly but it seems the makefile doesn't build the shared library to link against?!

The Archlinux package has something similar to:

  ${CXX} -shared -o lib${PN}.so.0.${PV} \
    -Wl,-soname,lib${PN}.so.0 $(ls *.o | grep -v xmltest)

Which seems to collect all the objects and link them together into a shared object? Is there anywhere else in OE we do this so I could see how it is formally done?

Regards,


--

  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  http://www.embed.me.uk

--


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to