logo       

Re: relink_command quoting bug: msg#00051

gnu.libtool.general

Subject: Re: relink_command quoting bug

On Tue, Feb 17, 2004 at 02:44:12AM -0600, Albert Chin wrote:
> Search your "libtool" script for a line like:
> relink_command="(cd `pwd`; ...
> and change it to:
> relink_command="(cd \"`pwd`\"; ...
>
> Does that fix it?

I should have posted the original relink command in its entirety:

relink_command="cd /home/michael/my src/mylib-0.1/src; { test -z
\"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export
LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH
|| { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z
\"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=;
export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset
LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z
\"\${LD_LIBRARY_PATH+set}\" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=;
export LD_LIBRARY_PATH; }; };
PATH=\"/home/michael/bin:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:.\";
export PATH; gcc -g -O2 -o \$progdir/\$file test.o ../libmy/.libs/libmy.so
-Wl,--rpath -Wl,/home/michael/my -Wl,--rpath -Wl,src/mylib-0.1/libmy/.libs
-Wl,--rpath -Wl,/usr/local/lib"

The first occurrence of the directory name is unquoted as I noted
earlier. But in the link line, the directory is misquoted ("-Wl,--rpath
-Wl,/home/michael/my -Wl,--rpath -Wl,src/mylib-0.1/libmy/.libs").
This example is from a Linux system with libtool 1.4.2a.

The change you suggested fixed the first problem but not the second.

Michael


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise