wrapper scripts

Seth Arnold seth.arnold at canonical.com
Tue Aug 18 20:37:40 UTC 2015


On Tue, Aug 18, 2015 at 10:09:31AM +0200, Simon Eisenmann wrote:
> Snapcraft wrappers only set the LD_LIBRARY_PATH to the arch which was
> used where snapcraft is run.
> 
> This is not sufficient to create multi arch snaps with snapcraft. The
> wrappers need to detect the arch where the wrapper is run and then set
> the path accordingly.
> 
> Moreover to have multi arch support there also needs to be some way to
> have the same binary for multiple architectures.

ld-linux.so.2 will use directories in DT_RUNPATH dynamic section
attribute, which support several variables, $ORIGIN and $PLATFORM look
most useful. See ld.so(8) for details. This might avoid the need for
wrappers entirely.

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/snappy-app-devel/attachments/20150818/1ef7e6b9/attachment.pgp>


More information about the snappy-app-devel mailing list