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

Bug 908835

Summary: =sci-libs/trilinos-14.0.0: optimization CXXFLAGS not respected
Product: Gentoo Linux Reporter: Michael Orlitzky <mjo>
Component: Current packagesAssignee: Matthias Maier <tamiko>
Status: IN_PROGRESS ---    
Severity: normal CC: sci
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Orlitzky gentoo-dev 2023-06-19 10:24:54 UTC
I'm testing a suitesparse upgrade right now and noticed this:

  Building CXX object ... -O2 -pipe -march=native -O0 -fopenmp  -O3

My CXXFLAGS are "-O2 -pipe -march=native -O0" (I appended the -O0 to speed up the build), but since the -O3 comes after, it's being ignored.
Comment 1 Matthias Maier gentoo-dev 2023-12-07 05:25:11 UTC
The trilinos build system has the bad habit of hard coding the "-O3" optimization flag in quite a number of places.