]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: quote the assignments for run-compiler
authorChristian Hesse <mail@eworm.de>
Tue, 23 May 2023 07:40:18 +0000 (09:40 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 23 May 2023 08:46:44 +0000 (10:46 +0200)
Building for multilib failed, as the compiler command contains an
extra argument. That needs quoting.

Regression from b78ca50cb3dda361f9c1

Fixes #11179
Closes #11180

configure.ac

index 75a882b12a4980a4dfa5339bd2d6a9a971630c2f..17dd05a94c9a2dbf611c261e9c5e0bf0fee263ea 100644 (file)
@@ -193,8 +193,8 @@ dnl something different but only have that affect the execution of the results
 dnl of the compile, not change the libraries for the compiler itself.
 dnl
 compilersh="run-compiler"
-echo "CC=$CC" > $compilersh
-echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $compilersh
+echo "CC=\"$CC\"" > $compilersh
+echo "LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH\"" >> $compilersh
 echo 'exec $CC $@' >> $compilersh
 
 dnl **********************************************************************