[oe] Issues building tinyXML

Phil Blundell philb at gnu.org
Thu Sep 6 16:08:27 UTC 2012


On Thu, 2012-09-06 at 16:57 +0100, Jack Mitchell wrote:
> 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?

Yeah, pretty much that.  If you're going to make it into a DSO then you
also need to make sure that all the objects are compiled -fpic.

p.






More information about the Openembedded-devel mailing list