Hi! Attached patch fixes compilation for some combinations of kernel and gcc, I tested that neither gcc-tsan nor clang-tsan need -fPIE.
Please comment, Carl Eugen
From 4854b07ee346374491c98ec1c5d10122ba2f1b5e Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos <ceffm...@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(-) diff --git a/configure b/configure index 1d1b6dc..9616b5d 100755 --- a/configure +++ b/configure @@ -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
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel