[Buildroot] [PATCH v5 12/19] infra-libtool: no longer prepend STAGING_DIR to libdir
Arnout Vandecappelle
arnout at mind.be
Sat Mar 18 15:37:31 UTC 2017
Hi Jerome,
On 20-12-16 14:46, Jérôme Pouiller wrote:
> Since `$lt_sysroot' is now correctly filled, it is no more necessary to patch
> `.la' files. Indeed, if $libdir point to `/usr/lib', libtool will also search
> in `$(lt_sysroot)/usr/lib'
Unfortunately, not all packages that use libtool also use automake. So some
packages may die because of this.
That said, we should probably just fix these individual packages.
(Not yet giving my reviewed-by, I'm first going to check the rest of the series.)
Regards,
Arnout
>
> Signed-off-by: Jérôme Pouiller <jezz at sysmic.org>
> ---
> package/pkg-generic.mk | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
> index 827de62..5d12ac3 100644
> --- a/package/pkg-generic.mk
> +++ b/package/pkg-generic.mk
> @@ -268,17 +268,6 @@ $(BUILD_DIR)/%/.stamp_staging_installed:
> -e "s, at BASE_DIR@,$(BASE_DIR),g" \
> $(addprefix $(STAGING_DIR)/usr/bin/,$($(PKG)_CONFIG_SCRIPTS)) ;\
> fi
> - @$(call MESSAGE,"Fixing libtool files")
> - $(Q)find $(STAGING_DIR)/usr/lib* -name "*.la" | xargs --no-run-if-empty \
> - $(SED) "s:$(BASE_DIR):@BASE_DIR@:g" \
> - -e "s:$(STAGING_DIR):@STAGING_DIR@:g" \
> - $(if $(TOOLCHAIN_EXTERNAL_INSTALL_DIR),\
> - -e "s:$(TOOLCHAIN_EXTERNAL_INSTALL_DIR):@TOOLCHAIN_EXTERNAL_INSTALL_DIR@:g") \
> - -e "s:\(['= ]\)/usr:\\1 at STAGING_DIR@/usr:g" \
> - $(if $(TOOLCHAIN_EXTERNAL_INSTALL_DIR),\
> - -e "s:@TOOLCHAIN_EXTERNAL_INSTALL_DIR@:$(TOOLCHAIN_EXTERNAL_INSTALL_DIR):g") \
> - -e "s:@STAGING_DIR@:$(STAGING_DIR):g" \
> - -e "s:@BASE_DIR@:$(BASE_DIR):g"
> @$(call step_end,install-staging)
> $(Q)touch $@
>
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
More information about the buildroot
mailing list