GNU bug report logs - #72613
Lack of fast-install on Linux proves painful w/ LTO

Previous Next

Package: libtool;

Reported by: Sam James <sam <at> gentoo.org>

Date: Wed, 14 Aug 2024 03:19:02 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sam James <sam <at> gentoo.org>
To: bug-libtool <at> gnu.org
Subject: Lack of fast-install on Linux proves painful w/ LTO
Date: Wed, 14 Aug 2024 04:18:04 +0100
[Message part 1 (text/plain, inline)]
Hi!

At the moment, it looks like fast-install is disabled on Linux:

# This must be glibc/ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  version_type=linux # correct to gnu/linux during the next big refactor
  need_lib_prefix=no
  need_version=no
  ...
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  hardcode_into_libs=yes

This is particularly painful when using LTO, as you end up with a pretty
time-consuming relink for something which is in theory avoidable.

(I've tried to follow the logic through but failed. It's not clear to me
why Linux needs this opt-out. I'm sure there *is* a reason, I just can't
spot it yet.)

thanks,
sam
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 303 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.