Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • aports aports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 661
    • Issues 661
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 319
    • Merge requests 319
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpinealpine
  • aportsaports
  • Merge requests
  • !43606

main/numactl: remove lto

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Kasper K requested to merge kasperk81/aports:master into master Jan 27, 2023
  • Overview 5
  • Commits 1
  • Pipelines 0
  • Changes 1

llvm's linker (lld) does not handle gcc lto files. https://github.com/llvm/llvm-project/issues/41791. the worst part is clang with bfd linker also does not handle for gcc lto files. so any static lib (.a) compiled with flto cannot be used with any version of clang. :(

either the static lib in packages needs to be compiled with clang -flto instead of gcc -flto so the well-known linkers bfd, gold and lld can link it with user code.

or drop lto from gcc build command.

either fix is fine. i've chosen the latter just bcoz that seems to be a go-to way in aports repo to solve lto-esque problems: "to lto or not to lto". i haven't found people switching the compiler in any of the previous patches. lmk, if i'm missing something.

cheers

Edited Jan 27, 2023 by Kasper K
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master