using GNU libc 2.27
Arsen Arsenović
aarsenovic@baylibre.com
Mon Apr 20 09:45:22 GMT 2026
Paul Zimmermann <Paul.Zimmermann@inria.fr> writes:
> thank you Arsen for your answer.
>
>> Try getting one of the compiler commands involved in building
>> libgmp.so.10 and passing it -save-temps, and look at the location
>> information in the resulting '.i' (or '.ii') file. I suspect you'll see
>> /usr/include in there.
>
> I tried this, but I get no '.i' (or '.ii') files:
>
> $ gcc -save-temps=cwd -shared -fPIC -DPIC .libs/assert.o
> ... rand/.libs/randmui.o -L/localdisk/zimmerma/glibc-2.27/install/lib
> -Wl,-soname -Wl,libgmp.so.10 -o .libs/libgmp.so.10.5.0
>
> $ find . -name "*.i"
> $ find . -name "*.ii"
> $
That's the link command, it doesn't actually run the compiler at all
(the .i/.ii files are C or C++, respectively, preprocessed translation
units).
Try that with, e.g, the gcc invocation that produces .libs/assert.o, or
similar.
Apologies for the ambiguity.
--
Arsen Arsenović
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 430 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260420/863af2d8/attachment.sig>
More information about the Libc-alpha
mailing list