2009-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ execute mode: do not transform *.lo or *.la arguments.
+ * libltdl/config/ltmain.m4sh (func_mode_execute): Do not check
+ arguments matching *.lo or *.la for script wrappers.
+ * tests/execute-mode.at (execute mode): Add tests.
+ * NEWS, THANKS: Update.
+ Report by Paul Biggar.
+
Nonexistent `main' does not guarantee link failure.
* tests/fail.at (Failure tests): Use an unresolved symbol,
rather than non-presence of `main', to provoke a link failure
only the default informational output. See New Features, --no-silent.
- Link tests are guarded by cache variables so they can be avoided for
bootstrapping purposes (e.g., when link tests are not possible).
+ - Argument mangling of execute mode has been improved (i.e., lessened).
* Miscellaneous changes:
Olaf Lenz olenz@fias.uni-frankfurt.de
Olly Betts olly@muscat.co.uk
Patrick Welche prlw1@newn.cam.ac.uk
+ Paul Biggar paul.biggar@gmail.com
Paul Eggert eggert@twinsun.com
Peter Eisentraut peter_e@gmx.net
Peter Jeremy peterjeremy@optushome.com.au
for file
do
case $file in
- -*) ;;
+ -* | *.la | *.lo ) ;;
*)
# Do a test to see if this is really a libtool program.
if func_ltwrapper_script_p "$file"; then
arg1=
done
+# Check that .la files are not transformed by the wrapper searching loop.
+AT_CHECK([$LIBTOOL --mode=execute echo ./main liba.lo libfakelib.la], [], [stdout])
+# This could be .libs/lt-main or similar (or just plain `main').
+AT_CHECK([grep main stdout], [], [ignore])
+AT_CHECK([grep liba.lo stdout], [], [ignore])
+AT_CHECK([grep libfakelib.la stdout], [], [ignore])
+
AT_CLEANUP