meson: prevent RPATH stripping
authorEric Le Bihan <eric.le.bihan.dev@free.fr>
Tue, 15 May 2018 19:51:54 +0000 (21:51 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 30 May 2018 20:19:20 +0000 (22:19 +0200)
commit7a23af4773665d2ee40e2d4e525746ebe38456dd
tree4a321c03cf989288321bcf9a8b5a558091b1e19f
parent12e56136e24b76d153950afe27e13bbf5f11eebc
meson: prevent RPATH stripping

By default, Meson strips RPATH from the executable it builds [1,2],
unless explicitly set via install_rpath.

This will make support/scripts/check-host-rpath fail when building the
host variant of a Meson-based package.

So add a patch to prevent RPATH from being stripped if install_rpath is
not set and notify user about it.

[1] https://github.com/mesonbuild/meson/issues/2567
[2] https://github.com/mesonbuild/meson/issues/314#issuecomment-157658562

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/meson/0001-Only-fix-RPATH-if-install_rpath-is-not-empty.patch [new file with mode: 0644]