summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-07-03 22:17:06 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-07-06 00:41:59 +0200
commita2317556efb79cbe8e21bf75d56c75e4086602ec (patch)
tree3592b268c2f5732325fe2db439cf1b2a66dd0be0
parent9807d3976be0e92e4ece3b4b1701be894cd7c2e1 (diff)
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.
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 1066df6621..b1a4dcfc42 100755
--- a/configure
+++ b/configure
@@ -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