In AIX, getloadavg, feenablexcept and my_fpe functions are not available. Also, -rdynamic option is not supported. Attempting to use these results in the above errors.
Attached a patch that checks whether the platform is AIX before making use of these functions and -rdynamic flag. With these changes, I am able to successfully compile cppcheck in AIX.
Please let me know your suggestions on these changes and if any further information is required.
Hi All,
During the compilation of cppcheck in AIX using gcc compiler, I encountered the following errors:
1.
2.
3.
4.
g++: error: unrecognized command-line option '-rdynamic'
In AIX, getloadavg, feenablexcept and my_fpe functions are not available. Also, -rdynamic option is not supported. Attempting to use these results in the above errors.
Attached a patch that checks whether the platform is AIX before making use of these functions and -rdynamic flag. With these changes, I am able to successfully compile cppcheck in AIX.
Please let me know your suggestions on these changes and if any further information is required.
Are you able to open a PR at https://github.com/danmar/cppcheck/pulls?
Yes, I am able to open PR.
https://github.com/danmar/cppcheck/pull/7856