Am 18.03.2013 15:24, schrieb Török Edwin:
> 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

the message is given when linking, while -fPIC needs to go into the compile
step.  Building objects without -fPIC to be used in a shared library results in
a linker message about unresolvable relocations without saying that -fPIC might
be involved.

> It should probably mention -fPIC on amd64, as it doesn't work with just -pie.

this is not amd64 specific (only works on i386).

> The manual doesn't mention this either

Maybe you could forward this upstream? See the gcc-snapshot package for the
manual sources.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to