libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Darwin and archive_cmds quoting


From: Kevin Ryde
Subject: Darwin and archive_cmds quoting
Date: 13 Apr 2001 11:05:05 +1000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5

On Darwin 1.3 with libtool 1.3d or the current cvs, the quoting of
archive_cmds provokes a warning about an unmatched ".  It comes
through to the generated libtool script as the following long line,

archive_cmds="\$CC \\`test .\$module = .yes && echo -bundle || echo 
-dynamiclib\\` \$allow_undefined_flag -o \$lib \$libobjs \$deplibs\$linkopts 
-install_name \$rpath/\$soname \\`test -n \\"\$verstring\\" -a x\$verstring != 
x0.0 && echo \$verstring\\`"

Which, under sh -x is processed as follows, note the final backslash.

+ archive_cmds=+ test . = .yes
+ echo -dynamiclib
+ archive_cmds=+ test -n "" -a x != x0.0
+ echo
+ archive_cmds=$CC \-dynamiclib $allow_undefined_flag -o $lib $libobjs 
$deplibs$linkopts -install_name $rpath/$soname \

and when evaluated for cmds, gives the following, note the \" at the end.

+ eval cmds="$CC \-dynamiclib $allow_undefined_flag -o $lib $libobjs 
$deplibs$linkopts -install_name $rpath/$soname \"
./libtool: unmatched " [-1]

This doesn't seem to hinder the generated shared library, but perhaps
isn't the way it's meant to work.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]