* [gentoo-dev] Re: libtool lt_dlopenext vs. gen_ld_script: breakages at runtime
@ 2014-01-12 11:15 99% ` Steven J. Long
0 siblings, 0 replies; 1+ results
From: Steven J. Long @ 2014-01-12 11:15 UTC (permalink / raw
To: gentoo-dev
On Wed, Jan 08, 2014, Rick "Zero_Chaos" Farina wrote:
> Or we could just stop randomly moving libs across the system and
> breaking things then hackmeating things back to a "working" state with
> gen_ld_script.
>
> The whole reason for having gen_ld_script is because people wanted
> dynamic libs in / and static libs in /usr (which seems insane) and it
> broke everything (because that idea is insane).
No it's not: it makes no sense whatsoever to have static libs in /; they
can only ever be used when one is compiling software, so by definition
have /usr available. And moving a dynamic lib is perfectly fine in terms
of the system running. That's what /etc/ld.so.cache is for.
I agree that it hasn't been done brilliantly fwtw. But there is no
reason on earth not to make the change proposed until such time
as an alternative impl is put in place; it can only make /lib more
consistent.
> Maybe we could just
> install all the libs together (either / or /usr) and stop pretending
> that what we are doing isn't wrong?
I'm still at a loss to understand why building the pkg with libdir=/lib
and then simply moving the static libs to /usr is not an option.
/usr/lib is automatically looked up by the linker, so that won't affect
builds: the only issue I can see would be a minor edit of any pkgconf
file, if libs are under a subdir, and that only affects static linking.
In no event, could not having static libs available under /lib be an
issue at startup, in stark contrast to dynamic ones. So the ld_script
approach seems really odd, no doubt a result of my ignorance. If all
else failed wrt libtool, one could easily symlink static libs under
/usr/lib to their lt install location under /lib.
--
#friendly-coders -- We're friendly, but we're not /that/ friendly ;-)
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2014-01-05 4:09 [gentoo-dev] libtool lt_dlopenext vs. gen_ld_script: breakages at runtime Robin H. Johnson
2014-01-08 20:14 ` Peter Stuge
2014-01-08 20:27 ` Robin H. Johnson
2014-01-08 20:43 ` Rick "Zero_Chaos" Farina
2014-01-12 11:15 99% ` [gentoo-dev] " Steven J. Long
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox