How to cross compile PTC ThingWorx C SDK for Legato?

How to cross compile PTC ThingWorx C SDK for Legato and use .so file created in the legato platform?