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'.
This commit is contained in:
Mosè Giordano 2021-06-18 23:46:44 +00:00 committed by Martin Liska
parent 1a830c0636
commit 759f3854f0
1 changed files with 1 additions and 1 deletions

View File

@ -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*)
;;