From 4854b07ee346374491c98ec1c5d10122ba2f1b5e Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Tue, 3 Jul 2018 22:17:06 +0200
Subject: [PATCH] configure: toolchain-tsan does not need -fPIE.
Fixes compilation with some kernel-gcc combinations:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67308
---
configure | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -3969,8 +3969,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
--
1.7.10.4