More and more package use openmp support and use their own function to check for openmp support. I think it would be a good idea to have one in the toolchain-funcs.eclass. This would avoid redundant code and provide a clean way to check for it.
I thought about something like --- toolchain-funcs.eclass 2009-03-01 11:05:55.000000000 +0100 +++ toolchain-funcs.eclass.new 2009-03-22 02:18:08.817522416 +0100 @@ -450,3 +450,11 @@ fi done } + +if [[ -z NEED_OPENMP ]]; then + if [[ $(tc-getCC) == *gcc* ]]; then + DEPEND="${DEPEND} + sys-devel/gcc[openmp]" + fi +fi + This must be adapted to other arches and compilers.
no, we have USE=openmp for packages to use
(In reply to comment #2) > no, we have USE=openmp for packages to use > That doesn't fix my request. If a package uses USE="openmp" but gcc isn't compiled with openmp or doesn't support openmp because of the version, the package couldn't be compiled with openmp support. Therefor every ebuild which wants to provide openmp support has to query for openmp compatibility of the compiler. I just wnated to move this check to an eclass. You answer is not enough. You can say, no we don't want this check provided as a function in an eclass and every ebuild should have its own code for that. Than that has to be excepted, but not just Wontfix with no argument.
then the user shouldnt have added openmp to their USE flags in the first place
reopen to close correctly