Commit a2317556 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

configure: toolchain-tsan does not need -fPIE.

Fixes compilation with some kernel-gcc combinations:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67308

Reported and analyzed by Gonzalo Garramuño.
parent 9807d397
......@@ -3973,8 +3973,8 @@ case "$toolchain" in
;;
*-tsan)
cc_default="${toolchain%-tsan}"
add_cflags -fsanitize=thread -fPIE
add_ldflags -fsanitize=thread -pie
add_cflags -fsanitize=thread
add_ldflags -fsanitize=thread
case "$toolchain" in
gcc-tsan)
add_cflags -fPIC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment