Re: [OS-BUILD PATCHv2] kernel.spec: Add glibc-static build requirement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Prarit Bhargava on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1538#note_809684083

>@prarit I still didn't get why we don't disable `CONFIG_CC_CAN_LINK_STATIC`
instead of bringing `glibc-static` to buildroot, even because we don't expect
to have any users of it anytime soon.

CONFIG_CC_CAN_LINK_STATIC is set dynamically at runtime in init/Kconfig:68,

```
config CC_CAN_LINK_STATIC
        bool
        default $(success,$(srctree)/scripts/cc-can-link.sh $(CC)
$(CLANG_FLAGS) $(m64-flag) -static) if 64BIT
        default $(success,$(srctree)/scripts/cc-can-link.sh $(CC)
$(CLANG_FLAGS) $(m32-flag) -static)

```
I thought about submitting a patch to add CONFIG_CC_CAN_LINK_STATIC_FORCE
upstream, or yet-another RHEL & ARK only commit to force
CONFIG_CC_CAN_LINK_STATIC to "not set" but both of those have some
trade-offs associated with them.

Ultimately we want a "known" compile.  Adding glibc-static to the
buildroot guarantees that we have the same compile on any platform (brew
or CKI containers).
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux