Bruno Haible wrote: > Find attached a patch for it, relative to libtool-1.5.24 (tested), > and a tentative patch relative to the libtool CVS (untested).
Hi Bruno, Thanks for the patch, I have applied this to the 1.5 branch. Peter -- Peter O'Gorman http://pogma.com
2008-01-21 Bruno Haible <[EMAIL PROTECTED]> * ltmain.in (lt_env): New variable. Use it when running commands. Index: ltmain.in =================================================================== RCS file: /sources/libtool/libtool/Attic/ltmain.in,v retrieving revision 1.334.2.146 diff -u -r1.334.2.146 ltmain.in --- ltmain.in 12 Jan 2008 13:58:44 -0000 1.334.2.146 +++ ltmain.in 21 Jan 2008 14:56:19 -0000 @@ -113,15 +113,21 @@ # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). # We save the old values to restore during execute mode. +lt_env= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var + lt_env=\"$lt_var=\$$lt_var \$lt_env\" $lt_var=C export $lt_var fi" done +if test -n "$lt_env"; then + lt_env="env $lt_env" +fi + # Make sure IFS has a sensible default lt_nl=' ' @@ -957,7 +963,7 @@ $run $rm "$lobj" "$output_obj" $show "$command" - if $run eval "$command"; then : + if $run eval $lt_env "$command"; then : else test -n "$output_obj" && $run $rm $removelist exit $EXIT_FAILURE @@ -1029,7 +1035,7 @@ command="$command$suppress_output" $run $rm "$obj" "$output_obj" $show "$command" - if $run eval "$command"; then : + if $run eval $lt_env "$command"; then : else $run $rm $removelist exit $EXIT_FAILURE
_______________________________________________ Bug-libtool mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-libtool