Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#45814 - [glibc] allow static linking of librt
Attached to Project:
Arch Linux
Opened by J. E. (jexo) - Tuesday, 28 July 2015, 17:06 GMT
Last edited by Allan McRae (Allan) - Wednesday, 05 August 2015, 13:43 GMT
Opened by J. E. (jexo) - Tuesday, 28 July 2015, 17:06 GMT
Last edited by Allan McRae (Allan) - Wednesday, 05 August 2015, 13:43 GMT
|
DetailsWhen linking my software packages statically to glibc I expect -l rt to work. I don't want to make any non-portable assumptions or have to test at build-time whether libc or librt provides the interfaces. Currently users of my software can't statically link to glibc on Arch Linux, but have to use dynamic linking.
c99 (provided by the gcc package on Arch) is specified by POSIX (http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html) to recognize the option. My understanding is that POSIX does not specify whether static or dynamic linking is used (from the c99 spec): "(It is unspecified whether the linking occurs entirely within the operation of c99; some implementations may produce objects that are not fully resolved until the file is executed.)" So it's not necessarily a bug, but a feature request for the standard librt library to be statically linkable. |
This task depends upon
Closed by Allan McRae (Allan)
Wednesday, 05 August 2015, 13:43 GMT
Reason for closing: Won't implement
Additional comments about closing: Arch discourages static linking.
Wednesday, 05 August 2015, 13:43 GMT
Reason for closing: Won't implement
Additional comments about closing: Arch discourages static linking.
Comment by Allan McRae (Allan) -
Tuesday, 28 July 2015, 23:43 GMT
Arch Linux discourages static linking. The only static files in the glibc ships are those needed for the toolchain testsuite.
Comment by J. E. (jexo) -
Sunday, 02 August 2015, 06:29 GMT
Is this view shared by upstream?
Comment by Allan McRae (Allan) -
Sunday, 02 August 2015, 06:36 GMT
I'm fairly sure the general view is static linking to glibc is not a good idea. But I doubt anyone has canvased their opinions on remove .a files from a package.