fixed #14158 - Disable the use of getloadavg(), my_fpe(), feenableexcept() and -rdynamic in AIX#7856
Conversation
|
Thanks for your contribution. Could you also verify that a |
getloadavg(), my_fpe(), feenableexcept() and -rdynamic in AIX
|
Side note for future cleanup: there is https://cmake.org/cmake/help/latest/module/CheckLinkerFlag.html which allows us to check if a linker option is available - but it was only added in CMake 3.18. |
|
Oh, and please add the name you want to be credited with to the |
getloadavg(), my_fpe(), feenableexcept() and -rdynamic in AIXgetloadavg(), my_fpe(), feenableexcept() and -rdynamic in AIX
|
I have made the requested changes. |
|
|
It looks good to me but I would like approval from @firewave also |
What error are you referring to? |
|
The compilation fails with the error |
|
Strange. I did some tests and |
The shortcoming is being addressed by an external submission: #7877 |
|
#7877 has been merged.. does |
|
In our case, we are doing a cmake build. So, -rdynamic gets passed from test/signal/CMakeLists.txt. |



In AIX, getloadavg, feenableexcept and my_fpe are not available. In addition, -rdynamic flag is not supported. This results in compilation errors in AIX and this patch fixes it.
For more information please refer the discussion : https://sourceforge.net/p/cppcheck/discussion/development/thread/f7bad36f1f/