Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • Makefile
Find file BlameHistoryPermalink
  • Alexander Lobakin's avatar
    kbuild: prevent CC_FLAGS_LTO self-bloating on recursive rebuilds · 2b868952
    Alexander Lobakin authored Jan 21, 2021
    CC_FLAGS_LTO gets initialized only via +=, never with := or =.
    When building with CONFIG_TRIM_UNUSED_KSYMS, Kbuild may perform
    several kernel rebuilds to satisfy symbol dependencies. In this
    case, value of CC_FLAGS_LTO is concatenated each time, which
    triggers a full rebuild.
    Initialize it with := to fix this.
    
    Fixes: dc5723b0
    
     ("kbuild: add support for Clang LTO")
    Signed-off-by: default avatarAlexander Lobakin <alobakin@pm.me>
    Signed-off-by: default avatarKees Cook <keescook@chromium.org>
    Link: https://lore.kernel.org/r/20210121184544.659998-1-alobakin@pm.me
    2b868952
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7