Browse Source

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.
tags/n4.1
Carl Eugen Hoyos 7 years ago
parent
commit
a2317556ef
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      configure

+ 2
- 2
configure View File

@@ -3973,8 +3973,8 @@ case "$toolchain" in
;; ;;
*-tsan) *-tsan)
cc_default="${toolchain%-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 case "$toolchain" in
gcc-tsan) gcc-tsan)
add_cflags -fPIC add_cflags -fPIC


Loading…
Cancel
Save