diff options
author | Mosè Giordano <mose@gnu.org> | 2021-06-18 23:46:44 +0000 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-08-03 13:24:47 +0200 |
commit | 759f3854f0fdb4add2961bfafd1ee793f392f70a (patch) | |
tree | 14163e942073aa8e29447cafea0f6cc8cd1be9d4 /libsanitizer | |
parent | 1a830c0636472e47a7503a5ed879725149e2e728 (diff) | |
download | gcc-759f3854f0fdb4add2961bfafd1ee793f392f70a.tar.gz |
Fix bashism in `libsanitizer/configure.tgt'
Appending to a string variable with `+=' is a bashism and does not work in
strict POSIX shells like dash. This results in the extra compilation flags not
to be set correctly. This patch replaces the `+=' syntax with a simple string
interpolation to append to the `EXTRA_CXXFLAGS' variable.
libsanitizer/ChangeLog
PR sanitizer/101111
* configure.tgt: Fix bashism in setting of `EXTRA_CXXFLAGS'.
Diffstat (limited to 'libsanitizer')
-rw-r--r-- | libsanitizer/configure.tgt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt index f635e412bdc..5a59ea6a1b5 100644 --- a/libsanitizer/configure.tgt +++ b/libsanitizer/configure.tgt @@ -70,7 +70,7 @@ case "${target}" in ;; x86_64-*-darwin2* | x86_64-*-darwin1[2-9]* | i?86-*-darwin1[2-9]*) TSAN_SUPPORTED=no - EXTRA_CXXFLAGS+="-Wl,-undefined,dynamic_lookup" + EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -Wl,-undefined,dynamic_lookup" ;; x86_64-*-solaris2.11* | i?86-*-solaris2.11*) ;; |