Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 911385

Summary: sys-boot/gnu-efi[custom-cflags] not respecting user flags
Product: Gentoo Linux Reporter: unhappy-ending <unhappy-ending>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kostadinshishmanov
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log showing no respect to flags
emerge --info

Description unhappy-ending 2023-07-28 09:28:06 UTC
As the summary states, even with USE=custom-cflags sys-boot/gnu-efi is not respecting CFLAGS.

Reproducible: Always

Steps to Reproduce:
1. Set -O3 for example
2. Compile
3. See -O2 after -O3 in build logs
Actual Results:  
Build not respecting user set flags

Expected Results:  
Respecting user set flags
Comment 1 unhappy-ending 2023-07-28 09:30:12 UTC
Created attachment 866508 [details]
build log showing no respect to flags
Comment 2 unhappy-ending 2023-07-28 09:30:41 UTC
Created attachment 866509 [details]
emerge --info
Comment 3 unhappy-ending 2023-07-28 09:33:48 UTC
P.S. This is a clang/llvm toolchain built system.
Comment 4 Mike Gilbert gentoo-dev 2023-07-30 02:34:13 UTC
The upstream build system appends to CFLAGS. You are welcome to take the matter up with them.