]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Use func_to_tool_file instead of fix_srcfile_path.
authorPeter Rosin <peda@lysator.liu.se>
Mon, 6 Sep 2010 08:40:25 +0000 (10:40 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Mon, 6 Sep 2010 08:40:25 +0000 (10:40 +0200)
* libltdl/config/ltmain.m4sh (func_mode_compile): Replace the
fix_srcfile_path hook with a call to func_to_tool_file.
* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [cygwin,mingw,pw32]
[cegcc]: Drop fix_srcfile_path.
* doc/libtool.texi (libtool script contents): Likewise.
* NEWS: Mention that fix_srcfile_path has been replaced.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
ChangeLog
NEWS
doc/libtool.texi
libltdl/config/ltmain.m4sh
libltdl/m4/libtool.m4

index 2ecd9535af044fcb7cdc9735cd708657d771257b..f177fdc69aa1ab2b6f3cb6faca116c8bb0fabc9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2010-09-06  Peter Rosin  <peda@lysator.liu.se>
 
+       Use func_to_tool_file instead of fix_srcfile_path.
+       * libltdl/config/ltmain.m4sh (func_mode_compile): Replace the
+       fix_srcfile_path hook with a call to func_to_tool_file.
+       * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [cygwin,mingw,pw32]
+       [cegcc]: Drop fix_srcfile_path.
+       * doc/libtool.texi (libtool script contents): Likewise.
+       * NEWS: Mention that fix_srcfile_path has been replaced.
+
        Convert file names to toolchain format in $NM and $AR @files.
        * libltdl/config/ltmain.m4sh (func_mode_link): When listing
        symbols and when creating archives using command files (or
diff --git a/NEWS b/NEWS
index 688bdca6bb1b8fb99a922c1717c6c1642f5ddc8a..8cf68b9fbeeb89e92b86a0716c7aab2d7cbb501b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,8 @@ New in 2.2.12 2010-08-??: git version 2.2.11a, Libtool team:
   - Autoconf 2.62 and Automake 1.11.1 or newer are now required for
     bootstrapping Libtool.  For using Libtool in your own projects,
     Autoconf 2.59 and Automake 1.9.6 should still work.
+  - The fix_srcfile_path variable has been replaced by a more thorough
+    mechanism triggered by the to_tool_file_cmd variable.
 
 * Changes in supported systems or compilers:
 
index f5d2f97222a1ff09094bf141b9a769c9a727a868..5a76e26d6f388ae6542e9dd6fe9e97c3870fbf89 100644 (file)
@@ -6546,10 +6546,6 @@ specific directory.
 Same as @code{finish_cmds}, except the commands are not displayed.
 @end defvar
 
-@defvar fix_srcfile_path
-Expression to fix the shell variable @samp{$srcfile} for the compiler.
-@end defvar
-
 @defvar global_symbol_pipe
 A pipeline that takes the output of @code{NM}, and produces a listing of
 raw symbols followed by their C names.  For example:
index cecc7f45c24fb2272d0ffa402c4b58ef33793d58..e5867b63ce9360b9a18b8d0a0796ab90de123152 100644 (file)
@@ -1376,9 +1376,8 @@ compiler."
     func_append removelist " $lockfile"
     trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
 
-    if test -n "$fix_srcfile_path"; then
-      eval srcfile=\"$fix_srcfile_path\"
-    fi
+    func_to_tool_file "$srcfile"
+    srcfile=$func_to_tool_file_result
     func_quote_for_eval "$srcfile"
     qsrcfile=$func_quote_for_eval_result
 
index fa46813ee27f2b8b79fc71b20c876175bf831981..132dd2c37af7df10b35ffcb1efe16e9ae41bc1db 100644 (file)
@@ -5036,7 +5036,6 @@ _LT_EOF
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
        # FIXME: Should let the user specify the lib program.
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
-       _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
        ;;
       esac
@@ -5571,8 +5570,6 @@ _LT_TAGDECL([], [inherit_rpath], [0],
     to runtime path list])
 _LT_TAGDECL([], [link_all_deplibs], [0],
     [Whether libtool must link a program against all its dependency libraries])
-_LT_TAGDECL([], [fix_srcfile_path], [1],
-    [Fix the shell variable $srcfile for the compiler])
 _LT_TAGDECL([], [always_export_symbols], [0],
     [Set to "yes" if exported symbols are required])
 _LT_TAGDECL([], [export_symbols_cmds], [2],