Enable LTO build for crash utility

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

 



Hi,

In Fedora crash.spec, currently the LTO is disabled as below:

+# This package has an internal copy of GDB which has broken configure code for
+# INTDIV0_RAISES_SIGFPE and MUST_REINSTALL_SIGHANDLERS
+# Updating that code properly seems nontrivial and best left to the package
+# maintainer.
+# Disable LTO
+%define _lto_cflags %{nil}

commit: c6fc69dae3a2 ("Disable LTO")

In RHEL9, that(disable LTO) was inherited from Fedora. But, currently a bug is reported to enable the LTO build for RHEL9:
https://bugzilla.redhat.com/show_bug.cgi?id=1990071.

I tried to remove the macro "%define _lto_cflags %{nil}" from the crash.spec, and then build the rpm packages, But I didn't see the lto flag such as "-flto" or "-ffat-lto-objects" during the whole build stage, and the build process passed without any error reports.

I'm wondering if it could rely on the redhat-rpm-config macro or it(LTO flag) can take effect when the toolchain is clang(not gcc)? Any thoughts?

Thanks.
Lianbo



But 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-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/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux