]> git.sesse.net Git - ffmpeg/commitdiff
configure: toolchain-tsan does not need -fPIE.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 3 Jul 2018 20:17:06 +0000 (22:17 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Thu, 5 Jul 2018 22:41:59 +0000 (00:41 +0200)
Fixes compilation with some kernel-gcc combinations:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67308

Reported and analyzed by Gonzalo Garramuño.

configure

index 1066df6621740d38fe00973919f5fa8071224296..b1a4dcfc428c901410fe3494b144c4ff2746e2e4 100755 (executable)
--- 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