* Florian Weimer:
- Richard Shaw:
I added the following to the libmqttc library and verified -fPIC -pie is in the build flags[1] per the recommendation from the hardening page[2] but the error remains.
Code that is linked into a shared object (with -shared) must be compiled as PIC, not PIE.
So using "-fPIC -pie" should elicit a warning from the compiler, something like:
warning: '-pie' turns off '-fPIC'
with an analogous warning whenever a command-line parameter conflicts with an earlier command-line parameter.