Skip to content

RFE: EL and GCC with LTO - add -fuse-linker-plugin #2049

@space88man

Description

@space88man

Is your feature request related to a problem? Please describe

Subject: Explicitly enable LTO linker plugin on toolchains that do not implicitly enable it

Problem: Observed on RHEL: when LTO is enabled via CFLAGS/LDFLAGS, compilation succeeds but the build fails during the final application link stage with "undefined reference" errors

I'll provide a PR shortly

Describe the solution you'd like

Add -fuse-linker-plugin to LDFLAGS

Describe alternatives you've considered

Couldn't figure any alternatives but to remove LTO

The rtpengine version you checked that didn't have the feature you are asking for

master 4b6b2eb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions