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

Bug 662552

Summary: sys-fabric/infiniband-psm does not respect neither CC neither CFLAGS/LDFLAGS
Product: Gentoo Linux Reporter: David Carlos Manuelda <StormByte>
Component: Current packagesAssignee: Gentoo Cluster Team <cluster>
Status: UNCONFIRMED ---    
Severity: normal CC: esigra
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 59506, 243502, 331933    
Attachments: respect toolchain variables

Description David Carlos Manuelda 2018-07-31 21:43:34 UTC
Created attachment 541918 [details, diff]
respect toolchain variables

When playing with clang as system compiler, I found that sys-fabric/infiniband-psm does not respect system's compiler, cflags, ldflags and so via CC, CFLAGS, etc like everything in Gentoo does, thus, it forces to set its own flags and compiler with its autodetection.

Furthermore, ebuild EAPI is 5, so it does not even support user patches.

I attach patch for it to respect system's variables, knowing this is probably more upstream, yet I do not know this software enough (was pulled as a result of dependency of another thing)

Tested and compiled ok with clang-6 and gcc-7