]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: delay expansion of $ECHO until the wrapper script runs
authorPeter Rosin <peda@lysator.liu.se>
Tue, 13 May 2014 09:47:54 +0000 (11:47 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Tue, 13 May 2014 09:47:54 +0000 (11:47 +0200)
Expanding $ECHO too early leads to unquoted \n when ECHO='printf %s\n'.

Fixes bug#17478. Reported by Egmont Koblinger.

* build-aux/ltmain.in (func_emit_wrapper) [fast_install]: Quote the
$ECHO, and delay the expansion.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
build-aux/ltmain.in

index 6af408779f19092eef2fa7966f96abded0e0058d..65b5a2dc0c422bba90b6beb4a23a3fdc8e688566 100644 (file)
@@ -3514,7 +3514,7 @@ func_exec_program ()
     if test -n \"\$relink_command\"; then
       if relink_command_output=\`eval \$relink_command 2>&1\`; then :
       else
-       $ECHO \"\$relink_command_output\" >&2
+       \$ECHO \"\$relink_command_output\" >&2
        $RM \"\$progdir/\$file\"
        exit 1
       fi