libtool: Avoid relinking when cross compiling, its pointless
PATCH 1/1 libtool: Avoid relinking when cross compiling, its pointless
There is no point in having "executable" binaries in the .libs directory linked with different rpaths to the target which could concivably be run on the build system when cross compiling.
This patch removes the extra rpaths ($compile_rpath) so that the output from the "link" stage can be used on the target. We can then avoid having to "relink" during the install stage.
This saves some build time (do_install is over 2 minutes faster for pulseaudio).
This patch also removes an annoying "seems to be moved" warning which is totally bogus in the sysroot case.
Signed-off-by Richard Purdie <[email protected]>
---
meta/recipes-devtools/libtool/libtool-cross_2.4.bb +2 -1
@@ -1,8 +1,9 @@ require libtool-${PV}.inc -PR = "r4" +PR = "r5" PACKAGES = "" SRC_URI += "file://prefix.patch" +SRC_URI += "file://fixinstall.patch" do_configure_prepend () { # Remove any existing libtool m4 since old stale versions would break
meta/recipes-devtools/libtool/libtool-native_2.4.bb +2 -1
@@ -2,8 +2,9 @@ require libtool-${PV}.inc DEPENDS = "" -PR = "r4" +PR = "r5" SRC_URI += "file://prefix.patch" +SRC_URI += "file://fixinstall.patch" inherit native
meta/recipes-devtools/libtool/libtool-nativesdk_2.4.bb +2 -1
@@ -1,7 +1,8 @@ require libtool-${PV}.inc -PR = "r4" +PR = "r5" SRC_URI += "file://prefix.patch" +SRC_URI += "file://fixinstall.patch" inherit nativesdk
meta/recipes-devtools/libtool/libtool/fixinstall.patch renamed from dev/null +110 -0
110 lines not on this page · raw message