Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [RFC] Dealing with global /usr/bin/libtool use vs CC/CXX etc.
Date: Sun, 10 Jan 2021 13:34:24
1 Hi,
3 The vast majority of libtool-based programs use configure script to
4 generate libtool. However, a few non-autoconf packages also use libtool
5 by calling system-installed /usr/bin/libtool. The problem is that this
6 libtool hardcodes the values of CC/CXX at its' build time, so unless it
7 is rebuilt frequently, packages end up using the stale values.
8 The problem is known since 2005 [1] and hasn't been resolved yet.
10 I can think of two ways of solving it:
12 1. We could patch system-installed libtool to respect environment
13 variables such as CC, CXX, etc. This will probably require carrying
14 a (possibly non-trivial) patch forever. On the bright side, libtool is
15 not exactly a package seeing frequent releases. I mean, the current
16 version is from 2015.
18 2. We could regenerate libtool and force local instance of libtool
19 in the packages needing it. The main advantage of this is that it's
20 a no-brainer. I could make a quick eclass that does configure a local
21 instance and prepends it into PATH.
23 WDYT?
26 [1]
28 --
29 Best regards,
30 Michał Górny