Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Hardening *FLAGS for custom clang/musl build

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
Asch
Tux's lil' helper
Tux's lil' helper
Posts: 85
Joined: Wed Jan 20, 2010 1:10 pm
Location: Nowhere special

Hardening *FLAGS for custom clang/musl build

  • Quote

Post by Asch » Tue Jan 20, 2026 8:51 pm

I have been checking the Gentoo wiki lately and stumbled upon the following articles:

https://wiki.gentoo.org/wiki/GCC_optimi ... imizations

https://wiki.gentoo.org/wiki/Hardened/Toolchain#Changes


However, I'm using a custom profile, copying clang/musl profile to my local overlay and importing stuff from hardened/clang atop it.

Do the hardened profile add appropriate compilation flags for such setup? I believe using the same *FLAGS for GCC as above would be moot and the hardened toolchain is supposed to detect this difference and adopt accordingly. However, would it do the same modifications to musl in relation to glibc? Should I add hardening *FLAGS of my own to make.conf?
Top
pietinger
Administrator
Administrator
Posts: 6640
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Tue Feb 03, 2026 11:10 pm

Asch,

I'm writing to you even though I can't help. We have a lot of very good IT experts in our forum and it's rare that there is no answer to a problem. But if this happens exceptionally, it is only because nobody can help - and NOT because we overlook a post. I'm sorry for you that there hasn't been a reply yet, but we may not have anyone able to help at the moment. :(

Please don't be disappointed and keep in touch if you need anything.
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
Post Reply

2 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic