[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Experimenting with reduced gcc-lib
From: |
Ludovic Courtès |
Subject: |
Re: Experimenting with reduced gcc-lib |
Date: |
Mon, 19 Dec 2022 22:14:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Hi!
Julien Lepiller <julien@lepiller.eu> skribis:
> Le 15 décembre 2022 15:34:02 GMT+01:00, "Ludovic Courtès" <ludo@gnu.org> a
> écrit :
>>> (outputs '("out" ;commands, etc. (60+ MiB)
>>> - "lib" ;libgcc_s, libgomp, etc. (15+
>>> MiB)
>>> + "shared-lib" ;libgcc_s, libgomp, etc. (5+
>>> MiB)
>>> + "static-lib" ;object code libraries and
>>> internal data files of GCC. (10+ MiB)
>>
>>The convention is to use “lib” for shared libraries and “static” for
>>static libraries.
>
> But using lib introduces a --libdir argument which is used to install static
> libs…
I see. Then maybe we should override the ‘configure’ phase, or repeat
‘--libdir’ in the hope that the second one wins?
>>Is libgomp in “lib”? Is it found when linking with ‘-fopenmp’?
>
> Well, shared-lib should be renaimed into libgcc, because it's the only
> library there.
OK.
> Libgomp amd all other libs are in static-lib (which is not well named either
> ^^'). It will be found I think but not tested (it find libstdc++ in the same
> directory).
Heh. :-)
I think it would be great to have all the .a in a separate output.
Thanks,
Ludo’.