Forums

Skip to content

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

[SOLVED] glibc with custom-cflags

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
EliasJonsson
n00b
n00b
User avatar
Posts: 53
Joined: Wed Oct 18, 2017 12:32 pm

[SOLVED] glibc with custom-cflags

  • Quote

Post by EliasJonsson » Mon Apr 03, 2023 4:22 am

Hello,
I'm using the profile

Code: Select all

[12]  default/linux/amd64/17.1/desktop/systemd (stable)
is there a way of making glibc compile using custom-cflags?
Last edited by EliasJonsson on Mon Apr 03, 2023 5:47 am, edited 1 time in total.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Mon Apr 03, 2023 4:58 am

You can unmasking use flag with package.use, but at your own risk because if it's masked there is a reason .

Code: Select all

# Sam James <sam@gentoo.org> (2021-01-24)
# USE=custom-cflags is _particularly_ dangerous on sys-libs/glibc and
# can result in not just build-time failures for glibc itself, but
# runtime crashes. The effect of using USE=custom-cflags globally in make.conf
# isn't the same as it is for just glibc specifically.
sys-libs/glibc custom-cflags
sys-devel/gcc custom-cflags
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
EliasJonsson
n00b
n00b
User avatar
Posts: 53
Joined: Wed Oct 18, 2017 12:32 pm

  • Quote

Post by EliasJonsson » Mon Apr 03, 2023 5:47 am

Thanks, tried that but it still didn't work as the use flag was masked. Had to the unmask the use flag by:

Code: Select all

mkdir -p /etc/portage/profile/use.mask
## nano /etc/portage/profile/use.mask/glibc
-custom-cflags
##
and setting custom-cflags in make.conf:

Code: Select all

USE="custom-cflags"
Top
EliasJonsson
n00b
n00b
User avatar
Posts: 53
Joined: Wed Oct 18, 2017 12:32 pm

  • Quote

Post by EliasJonsson » Mon Apr 03, 2023 5:48 am

fedeliallalinea wrote:You can unmasking use flag with package.use, but at your own risk because if it's masked there is a reason .
Thanks for the heads-up!
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Mon Apr 03, 2023 5:53 am

EliasJonsson wrote:Thanks, tried that but it still didn't work as the use flag was masked. Had to the unmask the use flag by:

Code: Select all

mkdir -p /etc/portage/profile/use.mask
## nano /etc/portage/profile/use.mask/glibc
-custom-cflags
##
In this way you unmask use flag globally, maybe is better to use package.use.mask to specify only one package (sorry in my previous post I wrongly linked the file to unmask the use flags).
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Post Reply

5 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