From 759f3854f0fdb4add2961bfafd1ee793f392f70a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mos=C3=A8=20Giordano?= Date: Fri, 18 Jun 2021 23:46:44 +0000 Subject: [PATCH] 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'. --- libsanitizer/configure.tgt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt index f635e412bdc4..5a59ea6a1b5e 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*) ;; -- 2.47.3