Skip to contentSkip to conversation

libtool: Avoid relinking when cross compiling, its pointless

PATCH New Richard Purdie 1 participant 1 message Nov 16, 2011

lore
Share & tools
lore
#0 lore raw

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.

---

meta/recipes-devtools/libtool/libtool-cross_2.4.bb +2 -1
index 6d512b1..596528a 100644
@@ -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
index 3d0998e..f405497 100644
@@ -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
index a96d1d1..bf1928d 100644
@@ -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