Bug#703230: [gcc-4.8] gcc-4.8: -fsanitize=thread requires -fPIC too
On 03/19/2013 12:07 AM, Matthias Klose wrote:
> Am 17.03.2013 04:03, schrieb Török Edwin:
>> GCC says that -pie or -shared is needed to use -fsanitize=thread
>
> where?
>
>
In the error message when you use just -fsanitize=thread:
$ gcc-4.8 -fsanitize=thread x.c
gcc-4.8.real: error: -fsanitize=thread linking must be done with -pie or -shared
It should probably mention -fPIC on amd64, as it doesn't work with just -pie.
The manual doesn't mention this either, but thats an upstream problem as Debian didn't package that yet.
Best regards,
--Edwin
Reply to: