public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [RFC] Dealing with global /usr/bin/libtool use vs CC/CXX etc.
@ 2021-01-10 13:34 Michał Górny
  2021-01-10 13:54 ` Fabian Groffen
  2021-01-11  8:52 ` Jaco Kroon
  0 siblings, 2 replies; 7+ messages in thread
From: Michał Górny @ 2021-01-10 13:34 UTC (permalink / raw
  To: gentoo-dev

Hi,

The vast majority of libtool-based programs use configure script to
generate libtool.  However, a few non-autoconf packages also use libtool
by calling system-installed /usr/bin/libtool.  The problem is that this
libtool hardcodes the values of CC/CXX at its' build time, so unless it
is rebuilt frequently, packages end up using the stale values.
The problem is known since 2005 [1] and hasn't been resolved yet.

I can think of two ways of solving it:

1. We could patch system-installed libtool to respect environment
variables such as CC, CXX, etc.  This will probably require carrying
a (possibly non-trivial) patch forever.  On the bright side, libtool is
not exactly a package seeing frequent releases.  I mean, the current
version is from 2015.

2. We could regenerate libtool and force local instance of libtool
in the packages needing it.  The main advantage of this is that it's
a no-brainer.  I could make a quick eclass that does configure a local
instance and prepends it into PATH.

WDYT?


[1] https://bugs.gentoo.org/88596

-- 
Best regards,
Michał Górny




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-01-17 22:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-10 13:34 [gentoo-dev] [RFC] Dealing with global /usr/bin/libtool use vs CC/CXX etc Michał Górny
2021-01-10 13:54 ` Fabian Groffen
2021-01-10 14:47   ` Michał Górny
2021-01-10 22:49     ` Joshua Kinard
2021-01-11  8:52 ` Jaco Kroon
2021-01-11 18:36   ` Peter Stuge
2021-01-17 22:55     ` Lars Wendler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox